Skip to content

Commit

Permalink
Issue python#21171: Fixed undocumented filter API of the rot13 codec.
Browse files Browse the repository at this point in the history
Patch by Berker Peksag.
  • Loading branch information
serhiy-storchaka committed Apr 13, 2014
1 parent ecd9e8a commit a39938f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/encodings/rot_13.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def getregentry():
### 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
Expand Down
3 changes: 3 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Core and Builtins
Library
-------

- Issue #21171: Fixed undocumented filter API of the rot13 codec.
Patch by Berker Peksag.

- Issue #21172: isinstance check relaxed from dict to collections.Mapping.

- Issue #21155: asyncio.EventLoop.create_unix_server() now raises a ValueError
Expand Down

0 comments on commit a39938f

Please sign in to comment.