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

Method encode

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

Source from the content-addressed store, hash-verified

214class Codec(codecs.Codec):
215
216 def encode(self, input, errors='strict'):
217 res = punycode_encode(input)
218 return res, len(input)
219
220 def decode(self, input, errors='strict'):
221 if errors not in ('strict', 'replace', 'ignore'):

Callers 1

punycode_decodeFunction · 0.45

Calls 1

punycode_encodeFunction · 0.85

Tested by

no test coverage detected