diff -r a14c2a560417 Lib/socket.py --- a/Lib/socket.py Fri Oct 08 02:47:45 2010 +0200 +++ b/Lib/socket.py Fri Oct 08 00:04:04 2010 -0400 @@ -171,7 +171,7 @@ buffer = io.BufferedWriter(raw, buffering) if binary: return buffer - text = io.TextIOWrapper(buffer, encoding, newline) + text = io.TextIOWrapper(buffer, encoding, newline = newline) text.mode = mode return text