Skip to content

Conversation

@rmorshea
Copy link
Collaborator

@rmorshea rmorshea commented Apr 23, 2023

Issues

WSGIContainer.environ changed from a staticmethod to an instance method.

Summary

Since we don't actually need a WSGI app and just want the ability to convert Tornado requests to an environ dict we create a dummy WSGIContainer and call its environ method. Thankfully, the only thing that seems to depend on the WSGIContainer itself is threading info according to the diff.

Checklist

  • Tests have been included for all bug fixes or added functionality.
  • The changelog.rst has been updated with any significant changes.

Specifically it changed from a staticmethod to an instance one.
This happened in Tornado 6.3. See:
tornadoweb/tornado#3231 (comment)
@rmorshea rmorshea marked this pull request as ready for review April 23, 2023 06:15
@rmorshea rmorshea merged commit 46bdf8c into main Apr 23, 2023
@rmorshea rmorshea deleted the fix-tornado-backend branch April 23, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants