gh-136447: Use self.loop instead of global loop variable in asyncio REPL (#136448)

This commit is contained in:
Justin Su 2025-07-09 04:57:20 -04:00 committed by GitHub
parent 797abd1f7f
commit 77fa7a4dcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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