Skip to content

Commit 104c8de

Browse files
committed
fixed pylint warnings
1 parent 19e7c89 commit 104c8de

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

java-benchmarks/mx.java-benchmarks/mx_java_benchmarks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def workingDirectory(self, benchmarks, bmSuiteArgs):
772772
def createCommandLineArgs(self, benchmarks, bmSuiteArgs):
773773
if benchmarks is None:
774774
# No benchmark specified in the command line, so run everything.
775-
benchmarks = [b for b in self.benchmarkList(bmSuiteArgs)]
775+
benchmarks = self.benchmarkList(bmSuiteArgs)
776776

777777
vmArgs = self.vmArgs(bmSuiteArgs)
778778
runArgs = self.runArgs(bmSuiteArgs)

sdk/mx.sdk/mx_sdk_vm_impl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,8 +2325,7 @@ def get_standalone_distribution(comp_dir_name):
23252325
if standalone.main_comp_dir_name == comp_dir_name:
23262326
return standalone
23272327
raise mx.abort("Cannot find a standalone with dir_name '{}'.\nAvailable standalones:\n{}".format(comp_dir_name, '\n'.join((('- ' + s.main_comp_dir_name for s in standalones)))))
2328-
else:
2329-
raise mx.abort('No standalones available. Did you forget to dynamically import a component?')
2328+
raise mx.abort('No standalones available. Did you forget to dynamically import a component?')
23302329

23312330

23322331
def has_svm_polyglot_lib():

substratevm/mx.substratevm/mx_substratevm_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def extract_dacapo(dacapo_path):
301301
return extract_archive(dacapo_path, 'dacapo.extracted')
302302

303303
def benchmark_resources(self, benchmark):
304-
pass
304+
return None
305305

306306
def additional_lib(self, lib):
307307
return mx.library(lib).get_path(True)

truffle/mx.truffle/tck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ def pull(self):
147147
if ret_code != 0:
148148
if self.required:
149149
raise Abort('Cannot download artifact {0} '.format(self))
150-
else:
151-
return False
150+
return False
152151
else:
153152
return True
154153

0 commit comments

Comments
 (0)