mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-136447: Use self.loop instead of global loop variable in asyncio REPL (#136448)
This commit is contained in:
parent
797abd1f7f
commit
77fa7a4dcc
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ def callback():
|
|||
except BaseException as exc:
|
||||
future.set_exception(exc)
|
||||
|
||||
loop.call_soon_threadsafe(callback, context=self.context)
|
||||
self.loop.call_soon_threadsafe(callback, context=self.context)
|
||||
|
||||
try:
|
||||
return future.result()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue