Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42e7aa commit e4ce9faCopy full SHA for e4ce9fa
1 file changed
Lib/encodings/rot_13.py
@@ -12,18 +12,18 @@
12
13
class Codec(codecs.Codec):
14
def encode(self, input, errors='strict'):
15
- return (input.translate(rot13_map), len(input))
+ return (str.translate(input, rot13_map), len(input))
16
17
def decode(self, input, errors='strict'):
18
19
20
class IncrementalEncoder(codecs.IncrementalEncoder):
21
def encode(self, input, final=False):
22
- return input.translate(rot13_map)
+ return str.translate(input, rot13_map)
23
24
class IncrementalDecoder(codecs.IncrementalDecoder):
25
def decode(self, input, final=False):
26
27
28
class StreamWriter(Codec,codecs.StreamWriter):
29
pass
0 commit comments