1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 11:22:41 +01:00

Gem5Device: simplfy if statement based on pylint recommendation

This commit is contained in:
Sascha Bischoff
2015-12-01 17:58:08 +00:00
committed by Sergei Trofimov
parent 00c9bdc2a6
commit c6e712d44c

View File

@@ -444,11 +444,10 @@ class BaseGem5Device(object):
try: try:
if int(output): if int(output):
return True return True
else:
return False
except ValueError: except ValueError:
# If we cannot process the output, assume that there is no file # If we cannot process the output, assume that there is no file
return False pass
return False
def disconnect(self): def disconnect(self):
""" """