MCPcopy Index your code
hub / github.com/python/cpython / decode

Method decode

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

Source from the content-addressed store, hash-verified

3773 self.assertEqual(str(cm.exception), 'unsupported error handler')
3774
3775 def decode(self, encoded, errors="strict"):
3776 return _testinternalcapi.DecodeLocaleEx(encoded, 0, errors)
3777
3778 def check_decode_strings(self, errors):
3779 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