Skip to content

Reverse some deprecation warnings from Tornado 6.2 #3216

@bdarnell

Description

@bdarnell

Key portions of the asyncio deprecation changes begun in Python 3.10 have been reversed. As a result, many of the deprecations made in Tornado 6.2 are no longer necessary. (with the additional caveat that Python versions 3.10.0--3.10.8 and 3.11.0 may still raise deprecation warnings under the old rules. 3.10.9 or 3.11.1 are needed to avoid the warnings)

Specifically, I believe we can un-deprecate the make_current/clear_current methods, the IOLoop constructor, and AsyncTestCase. AnyThreadEventLoopPolicy is still deprecated. The bind/start multi-process pattern no longer encounters deprecation errors from asyncio, but we want to keep it deprecated for other reasons (#2801).

It's also no longer necessary to update all docs to use the asyncio.run pattern, although I think we still want to start nudging people in this direction. These interfaces should still be discouraged in the docs even though we're no longer actively planning to disable and remove them. (with the possible exception of AsyncHTTPTestCase - we don't yet have a counterpart based on unittest.IsolatedAsyncioTestCase).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions