aboutsummaryrefslogtreecommitdiff
path: root/tools/test-generator.py
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-11-27 16:19:49 -0800
committerAnton Tananaev <anton@traccar.org>2022-11-27 16:19:49 -0800
commit6142cf557dc130828c12dbfb25ab18eda4bc0f7d (patch)
treea8d3b981796f2e5dc68be9e401afa5d6297abbbb /tools/test-generator.py
parent938872ff5e2fad867720ec9c971ea432ba623c2c (diff)
downloadtrackermap-server-6142cf557dc130828c12dbfb25ab18eda4bc0f7d.tar.gz
trackermap-server-6142cf557dc130828c12dbfb25ab18eda4bc0f7d.tar.bz2
trackermap-server-6142cf557dc130828c12dbfb25ab18eda4bc0f7d.zip
Update python scripts
Diffstat (limited to 'tools/test-generator.py')
-rwxr-xr-xtools/test-generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test-generator.py b/tools/test-generator.py
index 6e30c7fea..ed135b4aa 100755
--- a/tools/test-generator.py
+++ b/tools/test-generator.py
@@ -3,7 +3,7 @@
import sys
import math
import urllib
-import httplib
+import http.client as httplib
import time
import random
@@ -51,7 +51,7 @@ def send(conn, lat, lon, altitude, course, speed, battery, alarm, ignition, accu
params = params + (('fuel', fuel),)
if driverUniqueId:
params = params + (('driverUniqueId', driverUniqueId),)
- conn.request('GET', '?' + urllib.urlencode(params))
+ conn.request('GET', '?' + urllib.parse.urlencode(params))
conn.getresponse().read()
def course(lat1, lon1, lat2, lon2):