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

Method encode

Lib/encodings/rot_13.py:14–15  ·  view source on GitHub ↗
(self, input, errors='strict')

Source from the content-addressed store, hash-verified

12
13class Codec(codecs.Codec):
14 def encode(self, input, errors='strict'):
15 return (str.translate(input, rot13_map), len(input))
16
17 def decode(self, input, errors='strict'):
18 return (str.translate(input, rot13_map), len(input))

Callers 1

rot13Function · 0.45

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected