From: Serhiy Storchaka Date: Mon, 9 Oct 2023 09:13:16 +0000 (+0300) Subject: [3.12] gh-109151: Revert readline support in the sqlite3 CLI (#110542) X-Git-Tag: v3.12.1~349 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22474a1d62fef6b8223c5e33eae72fea78440d52;p=thirdparty%2FPython%2Fcpython.git [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. --- diff --git a/Lib/sqlite3/__main__.py b/Lib/sqlite3/__main__.py index b93b84384a09..3b59763375c1 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 78b4e882baba..000000000000 --- 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 ` (``python -m sqlite3``).