commit | 8a392d7387c9992537b0e1f66de989e34bd4eb4e | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Nov 21 22:09:45 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Nov 21 22:09:45 2007 +0000 |
tree | 689dd92ee0ca56b2464982cb07b398af03f81f19 | |
parent | b08340053cb10af7290628ed624e4f7ec6be398b [diff] [blame] |
Convert the socket module to insist on bytes for input, and to return bytes (not bytearray) on output. Discovered a bunch of places that were still depending on it accepting text strings.
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 62aae05..d782c53 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py
@@ -18,7 +18,7 @@ except socket.timeout: pass else: - conn.send("1 Hola mundo\n") + conn.send(b"1 Hola mundo\n") conn.close() finally: serv.close()