Remove another use of range (Python 2/3 difference)

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
This commit is contained in:
David A. Wheeler 2017-08-12 21:01:11 -04:00
parent c2ecdcf89b
commit 8fee8a34bd
1 changed files with 4 additions and 3 deletions

View File

@ -2092,9 +2092,10 @@ def show_final_results():
# Compute hits at "level x or higher"
print("Hits@level+ =", end='')
for i in possible_levels:
for j in range(i, 6):
count_per_level_and_up[
i] = count_per_level_and_up[i] + count_per_level[j]
for j in possible_levels:
if j >= i:
count_per_level_and_up[
i] = count_per_level_and_up[i] + count_per_level[j]
# Display hits at "level x or higher"
for i in possible_levels:
print(" [%d+] %3d" % (i, count_per_level_and_up[i]), end='')