]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-119909: Fix ``NameError`` in ``asyncio`` REPL (GH-121341) (#121447)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Jul 2024 23:02:33 +0000 (01:02 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Jul 2024 23:02:33 +0000 (01:02 +0200)
gh-119909: Fix ``NameError`` in ``asyncio`` REPL (GH-121341)
(cherry picked from commit 114389470ec3db457c589b3991b695258d23ce5a)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/asyncio/__main__.py

index 91fff9aaee337b422fbc8a71f38eef35bbf43fbe..3e2fe93943d4edcb7c9c0c6b89e23cf73c43713e 100644 (file)
@@ -116,7 +116,7 @@ class REPLThread(threading.Thread):
                 if err := check():
                     raise RuntimeError(err)
             except Exception as e:
-                console.interact(banner="", exitmsg=exit_message)
+                console.interact(banner="", exitmsg="")
             else:
                 try:
                     run_multiline_interactive_console(console=console)