mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-29 22:24:51 +00:00
Pylint fixes
Pylint now checks for trailing new lines, this commit fixes them.
This commit is contained in:
@@ -196,4 +196,3 @@ class DelayInstrument(Instrument):
|
||||
if self.active_cooling and not self.device.has('active_cooling'):
|
||||
message = 'Your device does not support active cooling. Did you configure it with an approprite module?'
|
||||
raise InstrumentError(message)
|
||||
|
||||
|
||||
@@ -58,5 +58,3 @@ class DmesgInstrument(Instrument):
|
||||
def teardown(self, context): # pylint: disable=unused-argument
|
||||
if self.loglevel:
|
||||
self.device.set_sysfile_value(self.loglevel_file, self.old_loglevel, verify=False)
|
||||
|
||||
|
||||
|
||||
@@ -144,4 +144,3 @@ class EnergyProbe(Instrument):
|
||||
writer = csv.DictWriter(f, self.attributes)
|
||||
writer.writeheader()
|
||||
writer.writerows(new_data)
|
||||
|
||||
|
||||
@@ -123,4 +123,3 @@ class HwmonInstrument(Instrument):
|
||||
except ValueError, e:
|
||||
self.logger.error('Could not collect all {} readings for {}'.format(sensor.kind, sensor.label))
|
||||
self.logger.error('Got: {}'.format(e))
|
||||
|
||||
|
||||
@@ -106,4 +106,3 @@ class JunoEnergy(Instrument):
|
||||
if self.device.name.lower() != 'juno':
|
||||
message = 'juno_energy instrument is only supported on juno devices; found {}'
|
||||
raise InstrumentError(message.format(self.device.name))
|
||||
|
||||
|
||||
@@ -189,4 +189,3 @@ class NetstatsInstrument(Instrument):
|
||||
def finalize(self, context):
|
||||
if self.uninstall_on_completion:
|
||||
self.collector.teardown()
|
||||
|
||||
|
||||
@@ -118,4 +118,3 @@ class FilePoller(Instrument):
|
||||
label_parts.append(pp[-1]) # always use file name even if same for all
|
||||
labels.append('-'.join(label_parts))
|
||||
return labels
|
||||
|
||||
|
||||
@@ -77,4 +77,3 @@ class ScreenOnInstrument(Instrument):
|
||||
def teardown(self, context):
|
||||
if self.polling_period:
|
||||
self.monitor.stop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user