mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-109151: Enable readline in the sqlite3 CLI (GH-109152)
This commit is contained in:
parent
e9f2352b7b
commit
254e30c487
2 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,10 @@ def main(*args):
|
|||
else:
|
||||
# No SQL provided; start the REPL.
|
||||
console = SqliteInteractiveConsole(con)
|
||||
try:
|
||||
import readline
|
||||
except ImportError:
|
||||
pass
|
||||
console.interact(banner, exitmsg="")
|
||||
finally:
|
||||
con.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue