diff -r a14c2a560417 Lib/socket.py --- a/Lib/socket.py Fri Oct 08 02:47:45 2010 +0200 +++ b/Lib/socket.py Mon Oct 11 21:35:01 2010 -0400 @@ -133,7 +133,7 @@ return socket(self.family, self.type, self.proto, fileno=fd), addr def makefile(self, mode="r", buffering=None, *, - encoding=None, newline=None): + encoding=None, errors=None, newline=None): """makefile(...) -> an I/O stream connected to the socket The arguments are as for io.open() after the filename, @@ -171,7 +171,7 @@ buffer = io.BufferedWriter(raw, buffering) if binary: return buffer - text = io.TextIOWrapper(buffer, encoding, newline) + text = io.TextIOWrapper(buffer, encoding, errors, newline) text.mode = mode return text