None
(obj, errors="strict")
| 113 | |
| 114 | |
| 115 | def escape_encode(obj, errors="strict"): |
| 116 | """None""" |
| 117 | if not isinstance(obj, bytes): |
| 118 | raise TypeError("must be bytes") |
| 119 | s = repr(obj).encode() |
| 120 | v = s[2:-1] |
| 121 | if s[1] == ord('"'): |
| 122 | v = v.replace(b"'", b"\\'").replace(b'\\"', b'"') |
| 123 | return v, len(obj) |
| 124 | |
| 125 | |
| 126 | def raw_unicode_escape_decode(data, errors="strict", final=True): |