aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/__main__.py
diff options
context:
space:
mode:
authorBartosz Sławecki <bartoszpiotrslawecki@gmail.com>2025-02-24 15:50:13 +0100
committerGitHub <noreply@github.com>2025-02-24 15:50:13 +0100
commit7ed3dc6392613832f66c63507385b1da109cbf21 (patch)
treeb703117da51c68792aa43e108a3cd8994d9e0429 /Lib/asyncio/__main__.py
parent9f25c1f012c8d432a93bf2dcad5f19a64dc00d3c (diff)
downloadcpython-7ed3dc6392613832f66c63507385b1da109cbf21.tar.gz
cpython-7ed3dc6392613832f66c63507385b1da109cbf21.zip
gh-128231: Use `runcode()` return value for failing early (GH-129488)
Diffstat (limited to 'Lib/asyncio/__main__.py')
-rw-r--r--Lib/asyncio/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/__main__.py b/Lib/asyncio/__main__.py
index 662ba649aa0..e624f7632be 100644
--- a/Lib/asyncio/__main__.py
+++ b/Lib/asyncio/__main__.py
@@ -75,7 +75,7 @@ class AsyncIOInteractiveConsole(InteractiveColoredConsole):
self.write("\nKeyboardInterrupt\n")
else:
self.showtraceback()
-
+ return self.STATEMENT_FAILED
class REPLThread(threading.Thread):