[tor-commits] [tor/master] practracker: Be compatible with python2 which is used by travis/jenkins.
nickm at torproject.org
nickm at torproject.org
Thu Mar 14 12:13:09 UTC 2019
commit a55c89c47594afc47d1302fbebed9d104ec3d6ff
Author: George Kadianakis <desnacked at riseup.net>
Date: Thu Mar 14 02:15:32 2019 +0200
practracker: Be compatible with python2 which is used by travis/jenkins.
---
scripts/maint/practracker/practracker.py | 2 ++
scripts/maint/practracker/problem.py | 2 ++
2 files changed, 4 insertions(+)
diff --git a/scripts/maint/practracker/practracker.py b/scripts/maint/practracker/practracker.py
index 08b74c264..a6e6d0b60 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 61420fb78..ab3d55057 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
More information about the tor-commits
mailing list