mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
gh-102628: Fix sqlite3 CLI prompt in IDLE on Windows (#103945)
This commit is contained in:
parent
2cf945bec6
commit
56c7176d1d
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue