summaryrefslogtreecommitdiff
path: root/Demo/sockets/unixclient.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-11-08 17:24:34 +0000
committerBenjamin Peterson <benjamin@python.org>2008-11-08 17:24:34 +0000
commit06fd5f8cc854c79b5a4b113d7ef9ab01227d94cf (patch)
tree36c5625b8dcb782c92f6e67fc566659c3dda9fce /Demo/sockets/unixclient.py
parentef6a19e3eab6dca9ef7eba92b636a4c2e88979c4 (diff)
downloadcpython-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.py2
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))