1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 06:34:13 +00:00

Pylint fixes

Pylint now checks for trailing new lines, this commit fixes them.
This commit is contained in:
Sebastian Goscik
2016-07-21 16:40:26 +01:00
parent 873bdf0bc7
commit 9707aa6237
77 changed files with 2 additions and 100 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -144,4 +144,3 @@ class EnergyProbe(Instrument):
writer = csv.DictWriter(f, self.attributes)
writer.writeheader()
writer.writerows(new_data)

View File

@@ -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))

View File

@@ -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))

View File

@@ -189,4 +189,3 @@ class NetstatsInstrument(Instrument):
def finalize(self, context):
if self.uninstall_on_completion:
self.collector.teardown()

View File

@@ -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

View File

@@ -77,4 +77,3 @@ class ScreenOnInstrument(Instrument):
def teardown(self, context):
if self.polling_period:
self.monitor.stop()