summaryrefslogtreecommitdiffstats
path: root/Lib/encodings
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-04-13 14:07:04 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-04-13 14:07:04 (GMT)
commita39938ff44ae9e63ae04b9b2856921a44bdf2b2c (patch)
treec2f16700c3ec797b6c38ded73b730a8fb2fb0e61 /Lib/encodings
parentecd9e8ac6765fe6a5f9496fbacb00732bf104bde (diff)
downloadcpython-a39938ff44ae9e63ae04b9b2856921a44bdf2b2c.zip
cpython-a39938ff44ae9e63ae04b9b2856921a44bdf2b2c.tar.gz
cpython-a39938ff44ae9e63ae04b9b2856921a44bdf2b2c.tar.bz2
Issue #21171: Fixed undocumented filter API of the rot13 codec.
Patch by Berker Peksag.
Diffstat (limited to 'Lib/encodings')
-rwxr-xr-xLib/encodings/rot_13.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/rot_13.py b/Lib/encodings/rot_13.py
index 1f2f47b..f0b4186 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