Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecd9e8a commit a39938fCopy full SHA for a39938f
2 files changed
Lib/encodings/rot_13.py
@@ -106,7 +106,7 @@ def getregentry():
106
### Filter API
107
108
def rot13(infile, outfile):
109
- outfile.write(infile.read().encode('rot-13'))
+ outfile.write(codecs.encode(infile.read(), 'rot-13'))
110
111
if __name__ == '__main__':
112
import sys
Misc/NEWS
@@ -27,6 +27,9 @@ Core and Builtins
27
Library
28
-------
29
30
+- Issue #21171: Fixed undocumented filter API of the rot13 codec.
31
+ Patch by Berker Peksag.
32
+
33
- Issue #21172: isinstance check relaxed from dict to collections.Mapping.
34
35
- Issue #21155: asyncio.EventLoop.create_unix_server() now raises a ValueError
0 commit comments