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

Method decode

Lib/test/test_codecs.py:3788–3789  ·  view source on GitHub ↗
(self, encoded, errors="strict")

Source from the content-addressed store, hash-verified

3786 self.assertEqual(str(cm.exception), 'unsupported error handler')
3787
3788 def decode(self, encoded, errors="strict"):
3789 return _testinternalcapi.DecodeLocaleEx(encoded, 0, errors)
3790
3791 def check_decode_strings(self, errors):
3792 is_utf8 = (self.ENCODING == "utf-8")

Callers 15

check_decode_stringsMethod · 0.95
check_partialMethod · 0.45
test_lone_surrogatesMethod · 0.45
test_errorsMethod · 0.45
test_nonbmpMethod · 0.45
test_errorsMethod · 0.45
test_nonbmpMethod · 0.45
test_decode_errorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected