diff --git a/Demo/sockets/echosvr.py b/Demo/sockets/echosvr.py index c1acf6cc6c2..a37f9c26eb0 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