tornadoweb / tornado

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
http://www.tornadoweb.org/
Apache License 2.0
21.77k stars 5.51k forks source link

*: Automated changes from pyupgrade #3403

Closed bdarnell closed 5 months ago

bdarnell commented 5 months ago

Adopt various new language features throughout the codebase. These changes are all automated by pyupgrade, but I had to modify pyupgrade to disable a change that was incorrect (it wanted to remove a call to str.encode which was used for its side effect to avoid import deadlocks), and to split things up into multiple commits for easier review. The last commit, which converts to fstrings, required running pyupgrade in two passes.

Closes #3391