File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 33import sys
44from urllib import parse
55
6- from prompt_toolkit import AbortAction , prompt
7- from prompt_toolkit .contrib . completers import WordCompleter
6+ from prompt_toolkit import prompt
7+ from prompt_toolkit .completion . word_completer import WordCompleter
88from prompt_toolkit .history import FileHistory
99from pygments .lexers import SqlLexer
1010from pygments .style import Style
@@ -174,9 +174,8 @@ def main():
174174 completer = sql_completer ,
175175 style = DocumentStyle ,
176176 history = history ,
177- on_abort = AbortAction .RETRY ,
178177 )
179- except EOFError :
178+ except ( EOFError , KeyboardInterrupt ) :
180179 break # Control-D pressed.
181180
182181 # run query
Original file line number Diff line number Diff line change 88 "pandas" : ["pandas" ],
99 "async" : ["tornado" ],
1010 "sqlalchemy" : ["sqlalchemy" ],
11- "cli" : ["pygments" , "prompt_toolkit" , "tabulate" ],
11+ "cli" : ["pygments" , "prompt_toolkit>=2.0.0 " , "tabulate" ],
1212}
1313
1414with io .open ("README.md" , encoding = "utf-8" ) as f :
You can’t perform that action at this time.
0 commit comments