Skip to content

Commit 79c21e1

Browse files
injustAgent-Hellboy
authored andcommitted
pythongh-136447: Use self.loop instead of global loop variable in asyncio REPL (python#136448)
1 parent ca57c66 commit 79c21e1

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)