Skip to content

Commit 19518a4

Browse files
[3.14] gh-136447: Use self.loop instead of global loop variable in asyncio REPL (GH-136448) (#136458)
gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448) (cherry picked from commit 77fa7a4) Co-authored-by: Justin Su <[email protected]>
1 parent c29fce0 commit 19518a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def callback():
6464
except BaseException as exc:
6565
future.set_exception(exc)
6666

67-
loop.call_soon_threadsafe(callback, context=self.context)
67+
self.loop.call_soon_threadsafe(callback, context=self.context)
6868

6969
try:
7070
return future.result()

0 commit comments

Comments
 (0)