Skip to content

bpo-38599: Deprecate creation of asyncio object when the loop is not running #18195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
Update Lib/asyncio/locks.py
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
  • Loading branch information
eamanu and aeros authored Mar 16, 2020
commit c4afc8f78a8cb15b4c44413c7d7c2c2765d7c1ab
2 changes: 1 addition & 1 deletion Lib/asyncio/locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, *, loop=None):
if loop is None:
self._loop = events._get_running_loop()
if self._loop is None:
warnings.warn("The creation of asyncio objects outside a running "
warnings.warn("The creation of asyncio objects outside of a running "
"event loop is deprecated as of Python 3.9.",
DeprecationWarning, stacklevel=2)
self._loop = events.get_event_loop()
Expand Down