]> git.ipfire.org Git - thirdparty/tornado.git/commit
avoid thread unsafe catch_warnings (#3124)
authorThomas Grainger <tagrain@gmail.com>
Fri, 18 Mar 2022 18:53:37 +0000 (18:53 +0000)
committerGitHub <noreply@github.com>
Fri, 18 Mar 2022 18:53:37 +0000 (14:53 -0400)
commitba068451c811b48cb3faa0adbc7bce335228b3f5
tree554fcca5ec1cef4040c19f71a5abd7bb0e747156
parentf8893a51104734299037a1e4edbc0f19ad8accbf
avoid thread unsafe catch_warnings (#3124)

`with warnings.catch_warnings():` mutates the warnings filters for the
whole process and so is unsafe to call from multiple threads
tornado/ioloop.py
tornado/platform/asyncio.py
tornado/test/asyncio_test.py