mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[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 77fa7a4dcc)
Co-authored-by: Justin Su <injustsu@gmail.com>
This commit is contained in:
parent
a66af8b827
commit
532ecac771
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,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