summaryrefslogtreecommitdiff
path: root/Demo/sockets
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-25 16:03:27 +0000
committerFred Drake <fdrake@acm.org>2000-08-25 16:03:27 +0000
commitc45bb0e9efc2e30d683ac56ae071937653b64295 (patch)
tree5b16cf967ba6545dc7200f95462666d10db533d5 /Demo/sockets
parent78f0bf718ca8c3f3f05935364628919c84ae78f8 (diff)
downloadcpython-c45bb0e9efc2e30d683ac56ae071937653b64295.tar.gz
Jeremy missed a bind() call when updating these demos. ;)
Diffstat (limited to 'Demo/sockets')
-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 c1acf6cc6c..a37f9c26eb 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