MCPcopy Index your code
hub / github.com/RustPython/RustPython / ascii_decode

Function ascii_decode

Lib/_pycodecs.py:173–177  ·  view source on GitHub ↗

None

(data, errors="strict")

Source from the content-addressed store, hash-verified

171
172
173def ascii_decode(data, errors="strict"):
174 """None"""
175 res = PyUnicode_DecodeASCII(data, len(data), errors)
176 res = "".join(res)
177 return res, len(data)
178
179
180def charmap_encode(obj, errors="strict", mapping="latin-1"):

Callers

nothing calls this directly

Calls 3

PyUnicode_DecodeASCIIFunction · 0.85
lenFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected