summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/broadcast.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-10-08 19:13:48 (GMT)
committerGuido van Rossum <guido@python.org>1994-10-08 19:13:48 (GMT)
commit00d59746f6d06e3dc7d85ff2ab05e0f3542de816 (patch)
treee1df8b2e09f5dec6c8c6dfc1177735d501ccfa0b /Demo/sockets/broadcast.py
parent37f142d1d1cb7e336fd82303081f2c8bad966819 (diff)
downloadcpython-00d59746f6d06e3dc7d85ff2ab05e0f3542de816.zip
cpython-00d59746f6d06e3dc7d85ff2ab05e0f3542de816.tar.gz
cpython-00d59746f6d06e3dc7d85ff2ab05e0f3542de816.tar.bz2
fix bind arg
Diffstat (limited to 'Demo/sockets/broadcast.py')
-rwxr-xr-xDemo/sockets/broadcast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/broadcast.py b/Demo/sockets/broadcast.py
index e7e6b9b..4b30143 100755
--- a/Demo/sockets/broadcast.py
+++ b/Demo/sockets/broadcast.py
@@ -7,7 +7,7 @@ from socket import *
from SOCKET import *
s = socket(AF_INET, SOCK_DGRAM)
-s.bind('', 0)
+s.bind(('', 0))
s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
while 1: