MCPcopy
hub / github.com/rspeer/python-ftfy / decode

Method decode

ftfy/bad_codecs/sloppy.py:126–127  ·  view source on GitHub ↗
(self, input: bytes, errors: str | None = "strict")

Source from the content-addressed store, hash-verified

124 return codecs.charmap_encode(input, errors, encoding_table)
125
126 def decode(self, input: bytes, errors: str | None = "strict") -> tuple[str, int]:
127 return codecs.charmap_decode(input, errors, decoding_table) # type: ignore[arg-type]
128
129 class IncrementalEncoder(codecs.IncrementalEncoder):
130 def encode(self, input: str, final: bool = False) -> bytes:

Callers 15

_build_regexesFunction · 0.45
fix_fileFunction · 0.45
guess_bytesFunction · 0.45
apply_planFunction · 0.45
explain_unicodeFunction · 0.45
decode_matchFunction · 0.45
_c1_fixerFunction · 0.45
make_sloppy_codecFunction · 0.45
test_cesu8Function · 0.45
test_russian_crashFunction · 0.45
get_command_outputFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_cesu8Function · 0.36
test_russian_crashFunction · 0.36
get_command_outputFunction · 0.36
test_wrong_encodingFunction · 0.36
test_same_fileFunction · 0.36
test_json_exampleFunction · 0.36