aboutsummaryrefslogtreecommitdiff
path: root/tools/test-commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-commands.py')
-rwxr-xr-xtools/test-commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/test-commands.py b/tools/test-commands.py
index 040efb177..7efd963b4 100755
--- a/tools/test-commands.py
+++ b/tools/test-commands.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
import socket
import binascii
@@ -6,9 +6,9 @@ import binascii
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("localhost", 5001))
#s.send(binascii.unhexlify('68680f0504035889905831401700df1a00000d0a'))
-s.send("imei:123456789012345,tracker,151030080103,,F,000101.000,A,5443.3834,N,02512.9071,E,0.00,0;")
+s.send(b"imei:123456789012345,tracker,151030080103,,F,000101.000,A,5443.3834,N,02512.9071,E,0.00,0;")
while True:
- print s.recv(1024)
+ print(s.recv(1024))
s.close()