Skip to content

Commit 532ecac

Browse files
[3.13] gh-136447: Use self.loop instead of global loop variable in asyncio REPL (GH-136448) (#136457)
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 a66af8b commit 532ecac

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
@@ -62,7 +62,7 @@ def callback():
6262
except BaseException as exc:
6363
future.set_exception(exc)
6464

65-
loop.call_soon_threadsafe(callback, context=self.context)
65+
self.loop.call_soon_threadsafe(callback, context=self.context)
6666

6767
try:
6868
return future.result()

0 commit comments

Comments
 (0)