Skip to content

Commit 2eb227d

Browse files
Merge pull request #1614 from practicalswift/fix-flake8-regression
[Python] Fix recently introduced linting (flake8) regression.
2 parents 6a337e9 + a1156e1 commit 2eb227d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmark/scripts/compare_perf_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# column -s, -t
2121

2222
from __future__ import print_function
23+
2324
import re
2425
import sys
2526

@@ -134,8 +135,8 @@ def compare_scores(key, score1, worstsample1, score2, worstsample2, runs, num):
134135
print (("%+d" % (bestscore2 - bestscore1)).rjust(9), end="")
135136

136137
if bestscore1 != 0 and bestscore2 != 0:
137-
print (("%+.1f%%" %
138-
(((float(bestscore2) / bestscore1) - 1) * 100)).rjust(9), end="")
138+
print(("%+.1f%%" %
139+
(((float(bestscore2) / bestscore1) - 1) * 100)).rjust(9), end="")
139140
if ShowSpeedup:
140141
Num, Den = float(bestscore2), float(bestscore1)
141142
if IsTime:

0 commit comments

Comments
 (0)