Commit d8da896d authored by Bram Schoenmakers's avatar Bram Schoenmakers

First fixes for prompt_toolkit >= 0.37.

There are still some Unicode issues pending, but for simple usage the
prompt should be working now with the latest prompt_toolkit.
parent b26c9b1f
......@@ -10,7 +10,7 @@ setup(
url = "https://github.com/bram85/topydo",
extras_require = {
'ical': ['icalendar'],
'prompt-toolkit': ['prompt-toolkit'],
'prompt-toolkit': ['prompt-toolkit >= 0.37'],
'edit-cmd-tests': ['mock'],
},
entry_points= {
......
......@@ -20,7 +20,7 @@ import sys
from topydo.cli.CLIApplicationBase import CLIApplicationBase, error
from topydo.cli.TopydoCompleter import TopydoCompleter
from prompt_toolkit.contrib.shortcuts import get_input
from prompt_toolkit.shortcuts import get_input
from topydo.lib.Config import config, ConfigError
......@@ -58,7 +58,7 @@ class PromptApplication(CLIApplicationBase):
while True:
try:
user_input = get_input('topydo> ', completer=completer).split()
user_input = get_input(u'topydo> ', completer=completer).split()
except (EOFError, KeyboardInterrupt):
sys.exit(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment