commit | cfe523b49280cdc8c239c807121ad3f33552f638 | [log] [tgz] |
---|---|---|
author | Inada Naoki <songofacandy@gmail.com> | Tue Apr 27 13:16:28 2021 +0900 |
committer | GitHub <noreply@github.com> | Tue Apr 27 13:16:28 2021 +0900 |
tree | ca00ebc35f6401b27bd7276288bfc99716d362a9 | |
parent | 743e2bae10d2010fd1e29b772c9da64efc7c9c47 [diff] [blame] |
bpo-43651: PEP 597: Fix `socket.makefile()` (GH-25645)
diff --git a/Lib/socket.py b/Lib/socket.py index 5276cc8..fc11eb7 100755 --- a/Lib/socket.py +++ b/Lib/socket.py
@@ -337,6 +337,7 @@ def makefile(self, mode="r", buffering=None, *, buffer = io.BufferedWriter(raw, buffering) if binary: return buffer + encoding = io.text_encoding(encoding) text = io.TextIOWrapper(buffer, encoding, errors, newline) text.mode = mode return text