|
return ["Hello world!\n"] |
This line (in a docstring showing how to use WSGIContainer) is wrong.
It should say:
return [b"Hello world!\n"]
... because WSGI requires a sequence of bytestrings in modern python. Without this change, the example fails with:
TypeError: sequence item 0: expected a bytes-like object, str found
in python 3.9 (and probably any python 3).
tornado/tornado/wsgi.py
Line 76 in 2047e7a
This line (in a docstring showing how to use WSGIContainer) is wrong.
It should say:
... because WSGI requires a sequence of bytestrings in modern python. Without this change, the example fails with:
in python 3.9 (and probably any python 3).