Skip to content

Commit 77fa7a4

Browse files
authored
gh-136447: Use self.loop instead of global loop variable in asyncio REPL (#136448)
1 parent 797abd1 commit 77fa7a4

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)