diff options
Diffstat (limited to 'Demo/sockets')
-rwxr-xr-x | Demo/sockets/echosvr.py | 2 |
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 |