diff options
author | Dick Marinus <dick@mrns.nl> | 2018-11-11 14:16:32 +0100 |
---|---|---|
committer | Irina Truong <i.chernyavska@gmail.com> | 2018-11-11 13:42:33 -0800 |
commit | 94475e62833b5db67ca668b4b95390c4b35edd03 (patch) | |
tree | 2eb67abea05ea9ada6dfda719adc38f341362bc9 | |
parent | 589c2abdfb329d343f5fcc41f674993677f01607 (diff) |
Require prompt_toolkit>=2.0.6.
-rw-r--r-- | changelog.rst | 1 | ||||
-rw-r--r-- | pgcli/main.py | 9 | ||||
-rw-r--r-- | setup.py | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/changelog.rst b/changelog.rst index 650599e1..4abcfc98 100644 --- a/changelog.rst +++ b/changelog.rst @@ -11,6 +11,7 @@ Internal: --------- * Clean up and add behave logging. (Thanks: `Dick Marinus`_) +* Require prompt_toolkit>=2.0.6. (Thanks: `Dick Marinus`_) 2.0.0: diff --git a/pgcli/main.py b/pgcli/main.py index ce3e88aa..5d6ff89f 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -529,13 +529,10 @@ class PGCli(object): raise RuntimeError(message) while True: try: - text = self.prompt_app.prompt( - default=sql, - vi_mode=self.vi_mode - ) + text = self.prompt_app.prompt(default=sql) break except KeyboardInterrupt: - sql = None + sql = "" editor_command = special.editor_command(text) return text @@ -633,7 +630,7 @@ class PGCli(object): try: while True: try: - text = self.prompt_app.prompt(vi_mode=self.vi_mode) + text = self.prompt_app.prompt() except KeyboardInterrupt: continue @@ -15,7 +15,7 @@ install_requirements = [ 'pgspecial>=1.11.2', 'click >= 4.1', 'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF? - 'prompt_toolkit>=2.0.0,<2.1.0', + 'prompt_toolkit>=2.0.6,<2.1.0', 'psycopg2 >= 2.7.4,<2.8', 'sqlparse >=0.2.2,<0.3.0', 'configobj >= 5.0.6', |