summaryrefslogtreecommitdiffstats
path: root/Demo/sockets/unicast.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sockets/unicast.py')
-rw-r--r--Demo/sockets/unicast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sockets/unicast.py b/Demo/sockets/unicast.py
index 1e9caeb..0a30f35 100644
--- a/Demo/sockets/unicast.py
+++ b/Demo/sockets/unicast.py
@@ -9,7 +9,7 @@ s = socket(AF_INET, SOCK_DGRAM)
s.bind(('', 0))
while 1:
- data = `time.time()` + '\n'
+ data = repr(time.time()) + '\n'
s.sendto(data, ('', MYPORT))
time.sleep(2)