summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/broadcast.py
diff options
context:
space:
mode:
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 a02b081..010162c 100755
--- a/Demo/sockets/broadcast.py
+++ b/Demo/sockets/broadcast.py
@@ -10,7 +10,7 @@ s.bind(('', 0))
s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
while 1:
- data = `time.time()` + '\n'
+ data = repr(time.time()) + '\n'
s.sendto(data, ('<broadcast>', MYPORT))
time.sleep(2)