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

Method decode

Lib/encodings/punycode.py:220–224  ·  view source on GitHub ↗
(self, input, errors='strict')

Source from the content-addressed store, hash-verified

218 return res, len(input)
219
220 def decode(self, input, errors='strict'):
221 if errors not in ('strict', 'replace', 'ignore'):
222 raise UnicodeError(f"Unsupported error handling: {errors}")
223 res = punycode_decode(input, errors)
224 return res, len(input)
225
226class IncrementalEncoder(codecs.IncrementalEncoder):
227 def encode(self, input, final=False):

Callers

nothing calls this directly

Calls 1

punycode_decodeFunction · 0.85

Tested by

no test coverage detected