diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-08-25 15:38:41 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-08-25 15:38:41 (GMT) |
commit | a8d30d5d667b32b1b296c0926a0e80709bd6fab3 (patch) | |
tree | a68f728c1c466ea08e04c3dcf08e2cafa2746132 /Demo/sockets/rpythond.py | |
parent | 239f836c10425bb2514284dd4eb4fc63b206b587 (diff) | |
download | cpython-a8d30d5d667b32b1b296c0926a0e80709bd6fab3.zip cpython-a8d30d5d667b32b1b296c0926a0e80709bd6fab3.tar.gz cpython-a8d30d5d667b32b1b296c0926a0e80709bd6fab3.tar.bz2 |
update demo scripts to use addr tuples for bind and connect
closes bug #111928
Diffstat (limited to 'Demo/sockets/rpythond.py')
-rwxr-xr-x | Demo/sockets/rpythond.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/rpythond.py b/Demo/sockets/rpythond.py index e8cdaa9..1109a99 100755 --- a/Demo/sockets/rpythond.py +++ b/Demo/sockets/rpythond.py @@ -19,7 +19,7 @@ def main(): else: port = PORT s = socket(AF_INET, SOCK_STREAM) - s.bind('', port) + s.bind(('', port)) s.listen(1) while 1: conn, (remotehost, remoteport) = s.accept() |