mirror of https://github.com/python/cpython
gh-102628: Fix sqlite3 CLI prompt in IDLE on Windows (#103945)
This commit is contained in:
parent
2cf945bec6
commit
56c7176d1d
|
@ -94,7 +94,10 @@ def main():
|
|||
db_name = repr(args.filename)
|
||||
|
||||
# Prepare REPL banner and prompts.
|
||||
eofkey = "CTRL-Z" if sys.platform == "win32" else "CTRL-D"
|
||||
if sys.platform == "win32" and "idlelib.run" not in sys.modules:
|
||||
eofkey = "CTRL-Z"
|
||||
else:
|
||||
eofkey = "CTRL-D"
|
||||
banner = dedent(f"""
|
||||
sqlite3 shell, running on SQLite version {sqlite3.sqlite_version}
|
||||
Connected to {db_name}
|
||||
|
|
Loading…
Reference in New Issue