diff options
author | Łukasz Langa <lukasz@langa.pl> | 2022-12-06 18:40:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 18:40:30 +0100 |
commit | 300d812fd1c4d9244e71de0d228cc72439d312a7 (patch) | |
tree | aa1099bf0884e6f4ad885825e7b8132da133b1a7 /Misc | |
parent | [3.10] gh-100001: Remove doc typo, add versionadded (GH-100042) (#100044) (diff) | |
download | cpython-300d812fd1c4d9244e71de0d228cc72439d312a7.tar.gz cpython-300d812fd1c4d9244e71de0d228cc72439d312a7.tar.bz2 cpython-300d812fd1c4d9244e71de0d228cc72439d312a7.zip |
[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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-12-02-13-05-00.gh-issue-93453.EFj1NN.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-12-02-13-05-00.gh-issue-93453.EFj1NN.rst b/Misc/NEWS.d/next/Library/2022-12-02-13-05-00.gh-issue-93453.EFj1NN.rst new file mode 100644 index 00000000000..dd4f43351ac --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-12-02-13-05-00.gh-issue-93453.EFj1NN.rst @@ -0,0 +1,3 @@ +:func:`asyncio.get_event_loop` now only emits a deprecation warning when a +new event loop was created implicitly. It no longer emits a deprecation +warning if the current event loop was set. |