]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 6 Dec 2022 15:15:44 +0000 (17:15 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Dec 2022 15:15:44 +0000 (16:15 +0100)
commit3fae04b10e2655a20a3aadb5e0d63e87206d0c67
tree421cb42ccdc341c9a9cb52796b47b4942084e167
parent235f5fd2ca4c6acb4b04efeaaa1ecb46d41d5a6d
[3.11] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created (#99949)

It no longer emits a deprecation warning if the current event loop was set.

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
13 files changed:
Doc/library/asyncio-eventloop.rst
Doc/library/asyncio-llapi-index.rst
Doc/library/asyncio-policy.rst
Lib/asyncio/events.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_streams.py
Lib/test/test_asyncio/test_tasks.py
Lib/test/test_asyncio/test_unix_events.py
Lib/test/test_coroutines.py
Misc/NEWS.d/next/Library/2022-12-02-13-05-00.gh-issue-93453.EFj1NN.rst [new file with mode: 0644]
Modules/_asynciomodule.c