MCPcopy
hub / github.com/benoitc/gunicorn / bytes_to_str

Function bytes_to_str

gunicorn/util.py:687–690  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

685
686
687def bytes_to_str(b):
688 if isinstance(b, str):
689 return b
690 return str(b, 'latin1')
691
692
693def unquote_to_wsgi_str(string):

Callers 4

parse_headersMethod · 0.90
_parse_fastMethod · 0.90
parse_request_lineMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected