1
0
Fork 0

Require prompt_toolkit>=2.0.6.

This commit is contained in:
Dick Marinus 2018-11-11 14:16:32 +01:00 committed by Irina Truong
parent 589c2abdfb
commit 94475e6283
3 changed files with 5 additions and 7 deletions

View File

@ -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:

View File

@ -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

View File

@ -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',