]> git.ipfire.org Git - thirdparty/tornado.git/commit
ioloop: Deprecate setting current ioloop for python 3.10
authorBen Darnell <ben@bendarnell.com>
Tue, 28 Dec 2021 19:24:42 +0000 (14:24 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 16 Jan 2022 21:49:19 +0000 (16:49 -0500)
commitebba482aa6009fcb7d1e6b222bdb2b3d96440c0a
tree9bf3aff14ddf11e20f03d8458a356de9da98aeb9
parent5f2405afdf044f4d4c004f4a28869b95a4467492
ioloop: Deprecate setting current ioloop for python 3.10

asyncio.get_event_loop and related methods are deprecated in python
3.10, so deprecate some IOLoop functionality to match. Specifically,
make_current, clear_current, and the IOLoop constructor are deprecated
in favor of initializing the asyncio event loop and calling
IOLoop.current(). (The IOLoop constructor is not deprecated if
make_current=False is used. This is useful in test frameworks but is
not expected to see general use).
tornado/ioloop.py
tornado/platform/asyncio.py
tornado/test/asyncio_test.py
tornado/test/httpclient_test.py
tornado/test/ioloop_test.py
tornado/test/util.py
tornado/testing.py