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

Function utf_7_encode

Lib/_pycodecs.py:400–404  ·  view source on GitHub ↗

None

(obj, errors="strict")

Source from the content-addressed store, hash-verified

398
399
400def utf_7_encode(obj, errors="strict"):
401 """None"""
402 res = PyUnicode_EncodeUTF7(obj, len(obj), 0, 0, errors)
403 res = b"".join(res)
404 return res, len(obj)
405
406
407def mbcs_encode(obj, errors="strict"):

Callers

nothing calls this directly

Calls 3

PyUnicode_EncodeUTF7Function · 0.85
lenFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected