summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-25 16:03:27 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-25 16:03:27 (GMT)
commit21801de6dceb53171189da2cb0883311ba474b2f (patch)
tree86963e4610bcbc67acd776ae28ff05367ad2c6cf
parenta8d30d5d667b32b1b296c0926a0e80709bd6fab3 (diff)
downloadcpython-21801de6dceb53171189da2cb0883311ba474b2f.zip
cpython-21801de6dceb53171189da2cb0883311ba474b2f.tar.gz
cpython-21801de6dceb53171189da2cb0883311ba474b2f.tar.bz2
Jeremy missed a bind() call when updating these demos. ;)
-rwxr-xr-xDemo/sockets/echosvr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/echosvr.py b/Demo/sockets/echosvr.py
index c1acf6c..a37f9c2 100755
--- a/Demo/sockets/echosvr.py
+++ b/Demo/sockets/echosvr.py
@@ -18,7 +18,7 @@ def main():
else:
port = ECHO_PORT
s = socket(AF_INET, SOCK_STREAM)
- s.bind('', port)
+ s.bind(('', port))
s.listen(1)
conn, (remotehost, remoteport) = s.accept()
print 'connected by', remotehost, remoteport