aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-03-14 02:15:32 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-03-14 02:15:32 +0200
commita55c89c47594afc47d1302fbebed9d104ec3d6ff (patch)
tree16c4680ce5f3b58d673eac076b7915d0d7644c72 /scripts
parentde616694257f19d5d2bd977e543ba98580d35be9 (diff)
downloadtor-a55c89c47594afc47d1302fbebed9d104ec3d6ff.tar.gz
tor-a55c89c47594afc47d1302fbebed9d104ec3d6ff.zip
practracker: Be compatible with python2 which is used by travis/jenkins.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/practracker/practracker.py2
-rw-r--r--scripts/maint/practracker/problem.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/maint/practracker/practracker.py b/scripts/maint/practracker/practracker.py
index 08b74c264f..a6e6d0b607 100755
--- a/scripts/maint/practracker/practracker.py
+++ b/scripts/maint/practracker/practracker.py
@@ -18,6 +18,8 @@ the source code and then get saved in the repository for ever after:
$ python3 ./scripts/maint/practracker/practracker.py . > ./scripts/maint/practracker/exceptions.txt
"""
+from __future__ import print_function
+
import os, sys
import metrics
diff --git a/scripts/maint/practracker/problem.py b/scripts/maint/practracker/problem.py
index 61420fb785..ab3d55057e 100644
--- a/scripts/maint/practracker/problem.py
+++ b/scripts/maint/practracker/problem.py
@@ -7,6 +7,8 @@ problem is worse than a registered exception so that it only warns when things
get worse.
"""
+from __future__ import print_function
+
import os.path
import sys