mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #21171: Fixed undocumented filter API of the rot13 codec.
Patch by Berker Peksag.
This commit is contained in:
parent
ecd9e8ac67
commit
a39938ff44
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -27,6 +27,9 @@ Core and Builtins
|
||||||
Library
|
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 #21172: isinstance check relaxed from dict to collections.Mapping.
|
||||||
|
|
||||||
- Issue #21155: asyncio.EventLoop.create_unix_server() now raises a ValueError
|
- Issue #21155: asyncio.EventLoop.create_unix_server() now raises a ValueError
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue