]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new...
authorŁukasz Langa <lukasz@langa.pl>
Tue, 6 Dec 2022 17:40:30 +0000 (18:40 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Dec 2022 17:40:30 +0000 (18:40 +0100)
commit300d812fd1c4d9244e71de0d228cc72439d312a7
treeaa1099bf0884e6f4ad885825e7b8132da133b1a7
parentb7ae1d22857c141ea4b0cc1f107e128596d02a94
[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created (#100059)

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

(cherry picked from commit 3fae04b10e2655a20a3aadb5e0d63e87206d0c67)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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