From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 6 Jul 2024 23:02:33 +0000 (+0200) Subject: [3.13] gh-119909: Fix ``NameError`` in ``asyncio`` REPL (GH-121341) (#121447) X-Git-Tag: v3.13.0b4~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2ad5fd1d1b5ff2b5ddeb24277b75e52085b4139;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-119909: Fix ``NameError`` in ``asyncio`` REPL (GH-121341) (#121447) gh-119909: Fix ``NameError`` in ``asyncio`` REPL (GH-121341) (cherry picked from commit 114389470ec3db457c589b3991b695258d23ce5a) Co-authored-by: Kirill Podoprigora --- diff --git a/Lib/asyncio/__main__.py b/Lib/asyncio/__main__.py index 91fff9aaee33..3e2fe93943d4 100644 --- a/Lib/asyncio/__main__.py +++ b/Lib/asyncio/__main__.py @@ -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)