diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-10-09 09:13:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 09:13:16 (GMT) |
commit | 22474a1d62fef6b8223c5e33eae72fea78440d52 (patch) | |
tree | b7657722913b0605ade3356e321a0b1363b0cb1c | |
parent | d1528233b875755c01d18d95784318041779aa70 (diff) | |
download | cpython-22474a1d62fef6b8223c5e33eae72fea78440d52.zip cpython-22474a1d62fef6b8223c5e33eae72fea78440d52.tar.gz cpython-22474a1d62fef6b8223c5e33eae72fea78440d52.tar.bz2 |
[3.12] gh-109151: Revert readline support in the sqlite3 CLI (#110542)
Revert "[3.12] gh-109151: Enable readline in the sqlite3 CLI (GH-109152) (#110352)"
This reverts commit bc1fe3549b32896ef0cbae3d2220ebeaf111d9b8.
-rw-r--r-- | Lib/sqlite3/__main__.py | 4 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-09-08-19-44-01.gh-issue-109151.GkzkQu.rst | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/Lib/sqlite3/__main__.py b/Lib/sqlite3/__main__.py index b93b843..3b59763 100644 --- a/Lib/sqlite3/__main__.py +++ b/Lib/sqlite3/__main__.py @@ -116,10 +116,6 @@ 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() diff --git a/Misc/NEWS.d/next/Library/2023-09-08-19-44-01.gh-issue-109151.GkzkQu.rst b/Misc/NEWS.d/next/Library/2023-09-08-19-44-01.gh-issue-109151.GkzkQu.rst deleted file mode 100644 index 78b4e88..0000000 --- a/Misc/NEWS.d/next/Library/2023-09-08-19-44-01.gh-issue-109151.GkzkQu.rst +++ /dev/null @@ -1 +0,0 @@ -Enable ``readline`` editing features in the :ref:`sqlite3 command-line interface <sqlite3-cli>` (``python -m sqlite3``). |