diff options
Diffstat (limited to 'Lib/encodings/rot_13.py')
-rwxr-xr-x | Lib/encodings/rot_13.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/rot_13.py b/Lib/encodings/rot_13.py index 1f2f47bb34..f0b4186dc8 100755 --- a/Lib/encodings/rot_13.py +++ b/Lib/encodings/rot_13.py @@ -106,7 +106,7 @@ rot13_map.update({ ### Filter API def rot13(infile, outfile): - outfile.write(infile.read().encode('rot-13')) + outfile.write(codecs.encode(infile.read(), 'rot-13')) if __name__ == '__main__': import sys |