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.
This commit is contained in:
Guido van Rossum 2007-11-21 22:09:45 +00:00
parent b08340053c
commit 8a392d7387
8 changed files with 42 additions and 43 deletions

View file

@ -19,7 +19,7 @@ def server(ready, evt):
except socket.timeout:
pass
else:
conn.send("+ Hola mundo\n")
conn.send(b"+ Hola mundo\n")
conn.close()
finally:
serv.close()