diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-08 17:24:34 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-08 17:24:34 +0000 |
commit | 06fd5f8cc854c79b5a4b113d7ef9ab01227d94cf (patch) | |
tree | 36c5625b8dcb782c92f6e67fc566659c3dda9fce /Demo/sockets/unixclient.py | |
parent | ef6a19e3eab6dca9ef7eba92b636a4c2e88979c4 (diff) | |
download | cpython-git-06fd5f8cc854c79b5a4b113d7ef9ab01227d94cf.tar.gz |
fix the socketserver demo code for py3k
#4275 Thanks to Don MacMillen
Diffstat (limited to 'Demo/sockets/unixclient.py')
-rw-r--r-- | Demo/sockets/unixclient.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/unixclient.py b/Demo/sockets/unixclient.py index cdccb84586..5e87eed0de 100644 --- a/Demo/sockets/unixclient.py +++ b/Demo/sockets/unixclient.py @@ -6,7 +6,7 @@ from socket import * FILE = 'unix-socket' s = socket(AF_UNIX, SOCK_STREAM) s.connect(FILE) -s.send('Hello, world') +s.send(b'Hello, world') data = s.recv(1024) s.close() print('Received', repr(data)) |