[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:
Miss Islington (bot) 2025-07-09 11:21:47 +02:00 committed by GitHub
parent a66af8b827
commit 532ecac771
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()