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

Function unicode_escape_encode

Lib/_pycodecs.py:140–144  ·  view source on GitHub ↗

None

(obj, errors="strict")

Source from the content-addressed store, hash-verified

138
139
140def unicode_escape_encode(obj, errors="strict"):
141 """None"""
142 res = unicodeescape_string(obj, len(obj), 0)
143 res = b"".join(res)
144 return res, len(obj)
145
146
147def latin_1_decode(data, errors="strict"):

Callers

nothing calls this directly

Calls 3

unicodeescape_stringFunction · 0.85
lenFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected