diff options
Diffstat (limited to 'Demo/sockets/unicast.py')
-rw-r--r-- | Demo/sockets/unicast.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Demo/sockets/unicast.py b/Demo/sockets/unicast.py index 0a30f3560f..dd15e3c7b9 100644 --- a/Demo/sockets/unicast.py +++ b/Demo/sockets/unicast.py @@ -9,8 +9,6 @@ s = socket(AF_INET, SOCK_DGRAM) s.bind(('', 0)) while 1: - data = repr(time.time()) + '\n' - s.sendto(data, ('', MYPORT)) - time.sleep(2) - - + data = repr(time.time()) + '\n' + s.sendto(data, ('', MYPORT)) + time.sleep(2) |