]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-109151: Revert readline support in the sqlite3 CLI (#110542)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 9 Oct 2023 09:13:16 +0000 (12:13 +0300)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2023 09:13:16 +0000 (09:13 +0000)
Revert "[3.12] gh-109151: Enable readline in the sqlite3 CLI (GH-109152) (#110352)"

This reverts commit bc1fe3549b32896ef0cbae3d2220ebeaf111d9b8.

Lib/sqlite3/__main__.py
Misc/NEWS.d/next/Library/2023-09-08-19-44-01.gh-issue-109151.GkzkQu.rst [deleted file]

index b93b84384a092582455aedde0ea715bcb179dd24..3b59763375c147477b303ff468d1ba358e3a39cd 100644 (file)
@@ -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 (file)
index 78b4e88..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Enable ``readline`` editing features in the :ref:`sqlite3 command-line interface <sqlite3-cli>` (``python -m sqlite3``).