(s: bytes)
| 52 | # This function is like those in the tornado.escape module, but defined |
| 53 | # here to minimize the temptation to use it in non-wsgi contexts. |
| 54 | def to_wsgi_str(s: bytes) -> str: |
| 55 | assert isinstance(s, bytes) |
| 56 | return s.decode("latin1") |
| 57 | |
| 58 | |
| 59 | class WSGIContainer: |