aboutsummaryrefslogtreecommitdiff
path: root/tests/block_weight/compare.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-10 14:35:44 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-01 15:31:52 +0000
commit1a91385eafa09533c56e97e3f213f80fc6995b20 (patch)
tree00e7841b538bebff166c0aef3ad000a8c1206faf /tests/block_weight/compare.py
parentMerge pull request #5317 (diff)
downloadmonero-1a91385eafa09533c56e97e3f213f80fc6995b20.tar.xz
block_weight: fix python 2/3 compatibility
Diffstat (limited to '')
-rwxr-xr-xtests/block_weight/compare.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/block_weight/compare.py b/tests/block_weight/compare.py
index e058a7079..e046e1640 100755
--- a/tests/block_weight/compare.py
+++ b/tests/block_weight/compare.py
@@ -1,5 +1,6 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+from __future__ import print_function
import sys
import subprocess
@@ -10,11 +11,11 @@ else:
first = [sys.argv[1]]
second = [sys.argv[2]]
-print 'running: ', first
+print('running: ', first)
S0 = subprocess.check_output(first, stderr=subprocess.STDOUT)
-print 'running: ', second
+print('running: ', second)
S1 = subprocess.check_output(second, stderr=subprocess.STDOUT)
-print 'comparing'
+print('comparing')
if S0 != S1:
sys.exit(1)
sys.exit(0)