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

Method encode

Lib/test/test_codecs.py:3735–3736  ·  view source on GitHub ↗
(self, text, errors="strict")

Source from the content-addressed store, hash-verified

3733 SURROGATES = "\uDC80\uDCFF"
3734
3735 def encode(self, text, errors="strict"):
3736 return _testinternalcapi.EncodeLocaleEx(text, 0, errors)
3737
3738 def check_encode_strings(self, errors):
3739 for text in self.STRINGS:

Callers 15

check_encode_stringsMethod · 0.95
check_partialMethod · 0.45
getreaderMethod · 0.45
test_bug1175396Method · 0.45
test_bug1098990_aMethod · 0.45
test_bug1098990_bMethod · 0.45
test_lone_surrogatesMethod · 0.45
test_simpleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected