changeset: 90228:f86504da2fcc parent: 90226:84bc6998f760 parent: 90227:a81f0caab279 user: Serhiy Storchaka date: Sun Apr 13 17:08:51 2014 +0300 files: Misc/NEWS description: Issue #21171: Fixed undocumented filter API of the rot13 codec. Patch by Berker Peksag. diff -r 84bc6998f760 -r f86504da2fcc Lib/encodings/rot_13.py --- a/Lib/encodings/rot_13.py Sat Apr 12 09:33:05 2014 -0700 +++ b/Lib/encodings/rot_13.py Sun Apr 13 17:08:51 2014 +0300 @@ -106,7 +106,7 @@ ### 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 diff -r 84bc6998f760 -r f86504da2fcc Misc/NEWS --- a/Misc/NEWS Sat Apr 12 09:33:05 2014 -0700 +++ b/Misc/NEWS Sun Apr 13 17:08:51 2014 +0300 @@ -34,6 +34,9 @@ Library ------- +- Issue #21171: Fixed undocumented filter API of the rot13 codec. + Patch by Berker Peksag. + - Issue #20539: Improved math.factorial error message for large positive inputs and changed exception type (OverflowError -> ValueError) for large negative inputs.