summaryrefslogtreecommitdiffstats
path: root/examples/prompts/regular-language.py
diff options
context:
space:
mode:
authorJonathan Slenders <jonathan@slenders.be>2018-05-20 23:15:18 +0200
committerJonathan Slenders <jonathan@slenders.be>2018-05-20 23:15:18 +0200
commit89bb836ab0e48e1a47746d65a9bd0919550ea50e (patch)
treed9edaebeb6281da25e52cfac33588a94bd85e006 /examples/prompts/regular-language.py
parentafccb572f7cfd0ba300d1a08d95a1e0475dc1baa (diff)
Fixed WordCompleter imports in examples.
Diffstat (limited to 'examples/prompts/regular-language.py')
-rwxr-xr-xexamples/prompts/regular-language.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/prompts/regular-language.py b/examples/prompts/regular-language.py
index a10d52f7..2ef731d2 100755
--- a/examples/prompts/regular-language.py
+++ b/examples/prompts/regular-language.py
@@ -13,7 +13,7 @@ This example shows how you can define the grammar of a regular language and how
to use variables in this grammar with completers and tokens attached.
"""
from __future__ import unicode_literals
-from prompt_toolkit.contrib.completers import WordCompleter
+from prompt_toolkit.completion import WordCompleter
from prompt_toolkit import prompt
from prompt_toolkit.contrib.regular_languages.compiler import compile