diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-04-13 17:08:51 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-04-13 17:08:51 +0300 |
commit | 9c5553e122303bb3e88f3867fadb08e03d08aed1 (patch) | |
tree | 087057e9653b6d87b9e668c2ac42dd10916c9a6f /Lib/encodings | |
parent | Remove references to the obsolete Mac Carbon modules in the GUI (diff) | |
parent | Issue #21171: Fixed undocumented filter API of the rot13 codec. (diff) | |
download | cpython-9c5553e122303bb3e88f3867fadb08e03d08aed1.tar.gz cpython-9c5553e122303bb3e88f3867fadb08e03d08aed1.tar.bz2 cpython-9c5553e122303bb3e88f3867fadb08e03d08aed1.zip |
Issue #21171: Fixed undocumented filter API of the rot13 codec.
Patch by Berker Peksag.
Diffstat (limited to 'Lib/encodings')
-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 1f2f47bb34f..f0b4186dc87 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 |