MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / _std_string

Function _std_string

tests/test_code/py/pytz/tzfile.py:19–21  ·  view source on GitHub ↗

Cast a string or byte string to an ASCII string.

(s)

Source from the content-addressed store, hash-verified

17
18
19def _std_string(s):
20 """Cast a string or byte string to an ASCII string."""
21 return str(s.decode('ASCII'))
22
23
24def build_tzinfo(zone, fp):

Callers 1

build_tzinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected