[Python-checkins] cpython (3.4): Issue #21171: Fixed undocumented filter API of the rot13 codec.
serhiy.storchaka
python-checkins at python.org
Sun Apr 13 16:09:05 CEST 2014
http://hg.python.org/cpython/rev/a81f0caab279
changeset: 90227:a81f0caab279
branch: 3.4
parent: 90225:b9a1e39c3240
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Apr 13 17:07:04 2014 +0300
summary:
Issue #21171: Fixed undocumented filter API of the rot13 codec.
Patch by Berker Peksag.
files:
Lib/encodings/rot_13.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/encodings/rot_13.py b/Lib/encodings/rot_13.py
--- a/Lib/encodings/rot_13.py
+++ b/Lib/encodings/rot_13.py
@@ -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 --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,9 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list