summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Slenders <jonathan@slenders.be>2018-05-20 23:06:46 +0200
committerJonathan Slenders <jonathan@slenders.be>2018-05-20 23:09:31 +0200
commitafccb572f7cfd0ba300d1a08d95a1e0475dc1baa (patch)
tree9662d66b22d76c14af71a6cf9fb973676f0030e8
parent3cb3a12e575be4d25552d413ab9554c4979fd64f (diff)
Fixed text-editor & full-screen-demo examples + Python2 fix in lexers/pygments.py.
-rwxr-xr-xexamples/full-screen/full-screen-demo.py2
-rwxr-xr-xexamples/full-screen/text-editor.py2
-rw-r--r--prompt_toolkit/lexers/pygments.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/full-screen/full-screen-demo.py b/examples/full-screen/full-screen-demo.py
index b8fa5087..401a8f9b 100755
--- a/examples/full-screen/full-screen-demo.py
+++ b/examples/full-screen/full-screen-demo.py
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
from prompt_toolkit.application import Application
from prompt_toolkit.application.current import get_app
-from prompt_toolkit.contrib.completers import WordCompleter
+from prompt_toolkit.completion import WordCompleter
from prompt_toolkit.key_binding import KeyBindings
from prompt_toolkit.key_binding.bindings.focus import focus_next, focus_previous
from prompt_toolkit.layout.containers import VSplit, HSplit, Float
diff --git a/examples/full-screen/text-editor.py b/examples/full-screen/text-editor.py
index 11a0425f..b8cc0003 100755
--- a/examples/full-screen/text-editor.py
+++ b/examples/full-screen/text-editor.py
@@ -6,7 +6,7 @@ from __future__ import unicode_literals
from prompt_toolkit.application import Application
from prompt_toolkit.application.current import get_app
-from prompt_toolkit.contrib.completers import PathCompleter
+from prompt_toolkit.completion import PathCompleter
from prompt_toolkit.eventloop import Future, ensure_future, Return, From
from prompt_toolkit.filters import Condition
from prompt_toolkit.key_binding import KeyBindings
diff --git a/prompt_toolkit/lexers/pygments.py b/prompt_toolkit/lexers/pygments.py
index b00cc1b5..561af59f 100644
--- a/prompt_toolkit/lexers/pygments.py
+++ b/prompt_toolkit/lexers/pygments.py
@@ -4,7 +4,7 @@ Adaptor classes for using Pygments lexers within prompt_toolkit.
This includes syntax synchronization code, so that we don't have to start
lexing at the beginning of a document, when displaying a very large text.
"""
-from __future__ import unicode_literals
+from __future__ import unicode_literals, absolute_import
from abc import ABCMeta, abstractmethod
from six import with_metaclass, text_type
from six.moves import range