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

Function _byte_string

tests/test_code/py/pytz/tzfile.py:12–14  ·  view source on GitHub ↗

Cast a string or byte string to an ASCII byte string.

(s)

Source from the content-addressed store, hash-verified

10
11
12def _byte_string(s):
13 """Cast a string or byte string to an ASCII byte string."""
14 return s.encode('ASCII')
15
16_NULL = _byte_string('\0')
17

Callers 2

tzfile.pyFile · 0.85
build_tzinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected