mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
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:
parent
b08340053c
commit
8a392d7387
8 changed files with 42 additions and 43 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue