mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
Updated pylint for v1.5.1
Fixed WA for the latest version of pylint (1.5.1)
This commit is contained in:
@@ -148,7 +148,7 @@ class PerfInstrument(Instrument):
|
||||
self.events = [self.events]
|
||||
if not self.labels: # pylint: disable=E0203
|
||||
self.labels = ['perf_{}'.format(i) for i in xrange(len(self.optionstrings))]
|
||||
if not len(self.labels) == len(self.optionstrings):
|
||||
if len(self.labels) != len(self.optionstrings):
|
||||
raise ConfigError('The number of labels must match the number of optstrings provided for perf.')
|
||||
|
||||
def _build_commands(self):
|
||||
@@ -173,4 +173,3 @@ class PerfInstrument(Instrument):
|
||||
event_string,
|
||||
self._get_device_outfile(label))
|
||||
return command
|
||||
|
||||
|
Reference in New Issue
Block a user