Skip to content

Commit 1681307

Browse files
committed
Pylint fixes
1 parent b0ce365 commit 1681307

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

benchmark/scripts/Benchmark_Driver

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class `BenchmarkDoctor` analyzes performance tests, implements `check` COMMAND.
2828
import argparse
2929
import functools
3030
import glob
31-
import json
3231
import logging
3332
import math
3433
import os
@@ -150,14 +149,14 @@ class BenchmarkDriver(object):
150149
try:
151150
number = int(columns[0])
152151
name = columns[1]
153-
json = {"number": number, "name": name}
154-
json_tests.append(json)
155-
except Exception as e:
152+
json_descr = {"number": number, "name": name}
153+
json_tests.append(json_descr)
154+
except Exception:
156155
continue
157156
# TODO: Replace the above with the following to
158157
# use the JSON output from the benchmark driver
159158
# directly
160-
#if line.strip() != "":
159+
# if line.strip() != "":
161160
# json_tests.append(json.loads(line))
162161
self.all_tests = [json["name"] for json in json_tests]
163162
test_numbers = [json["number"] for json in json_tests]

0 commit comments

Comments
 (0)