Kaydet (Commit) 9c5553e1 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #21171: Fixed undocumented filter API of the rot13 codec.

Patch by Berker Peksag.
...@@ -106,7 +106,7 @@ rot13_map.update({ ...@@ -106,7 +106,7 @@ rot13_map.update({
### Filter API ### Filter API
def rot13(infile, outfile): def rot13(infile, outfile):
outfile.write(infile.read().encode('rot-13')) outfile.write(codecs.encode(infile.read(), 'rot-13'))
if __name__ == '__main__': if __name__ == '__main__':
import sys import sys
......
...@@ -34,6 +34,9 @@ Core and Builtins ...@@ -34,6 +34,9 @@ Core and Builtins
Library 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 - Issue #20539: Improved math.factorial error message for large positive inputs
and changed exception type (OverflowError -> ValueError) for large negative and changed exception type (OverflowError -> ValueError) for large negative
inputs. inputs.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment