diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-10 14:35:44 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-01 15:31:52 +0000 |
commit | 1a91385eafa09533c56e97e3f213f80fc6995b20 (patch) | |
tree | 00e7841b538bebff166c0aef3ad000a8c1206faf /tests/block_weight/block_weight.py | |
parent | Merge pull request #5317 (diff) | |
download | monero-1a91385eafa09533c56e97e3f213f80fc6995b20.tar.xz |
block_weight: fix python 2/3 compatibility
Diffstat (limited to 'tests/block_weight/block_weight.py')
-rwxr-xr-x | tests/block_weight/block_weight.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/block_weight/block_weight.py b/tests/block_weight/block_weight.py index d6fd494e3..ba533c53c 100755 --- a/tests/block_weight/block_weight.py +++ b/tests/block_weight/block_weight.py @@ -3,6 +3,7 @@ # This uses the scheme proposed by ArticMine # Written by Sarang Nother # Copyright (c) 2019 The Monero Project +from __future__ import print_function import sys import math @@ -67,7 +68,7 @@ def run(t, blocks): lt_weights.append(min(max_weight,int(ltembw + int(ltembw * 2 / 5)))) #print "H %u, r %u, BW %u, EMBW %u, LTBW %u, LTEMBW %u, ltmedian %u" % (block, r, max_weight, embw, lt_weights[-1], ltembw, ltmedian) - print "H %u, BW %u, EMBW %u, LTBW %u" % (block, max_weight, embw, lt_weights[-1]) + print("H %u, BW %u, EMBW %u, LTBW %u" % (block, max_weight, embw, lt_weights[-1])) run(0, 2 * MEDIAN_WINDOW_BIG) run(1, 9 * MEDIAN_WINDOW_BIG) |