MCPcopy
hub / github.com/tornadoweb/tornado / to_wsgi_str

Function to_wsgi_str

tornado/wsgi.py:54–56  ·  view source on GitHub ↗
(s: bytes)

Source from the content-addressed store, hash-verified

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.
54def to_wsgi_str(s: bytes) -> str:
55 assert isinstance(s, bytes)
56 return s.decode("latin1")
57
58
59class WSGIContainer:

Callers 1

environMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected