mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 11:52:36 +01:00
framework: pep8 fixes
Fix issues reported by flake8.
This commit is contained in:
committed by
Marc Bonnici
parent
88c5005b38
commit
03eafe6b33
@@ -144,12 +144,14 @@ class LoggingConfig(dict):
|
||||
def to_pod(self):
|
||||
return self
|
||||
|
||||
|
||||
def expanded_path(path):
|
||||
"""
|
||||
Ensure that the provided path has been expanded if applicable
|
||||
"""
|
||||
return os.path.expanduser(str(path))
|
||||
|
||||
|
||||
def get_type_name(kind):
|
||||
typename = str(kind)
|
||||
if '\'' in typename:
|
||||
@@ -377,12 +379,11 @@ class Configuration(object):
|
||||
name))
|
||||
try:
|
||||
self.configuration[name].set_value(self, value,
|
||||
check_mandatory=check_mandatory)
|
||||
check_mandatory=check_mandatory)
|
||||
except (TypeError, ValueError, ConfigError) as e:
|
||||
msg = 'Invalid value "{}" for "{}": {}'
|
||||
raise ConfigError(msg.format(value, name, e))
|
||||
|
||||
|
||||
def update_config(self, values, check_mandatory=True):
|
||||
for k, v in values.items():
|
||||
self.set(k, v, check_mandatory=check_mandatory)
|
||||
@@ -899,7 +900,6 @@ class JobSpec(Configuration):
|
||||
self.label = self.workload_name
|
||||
|
||||
|
||||
|
||||
# This is used to construct the list of Jobs WA will run
|
||||
class JobGenerator(object):
|
||||
|
||||
|
Reference in New Issue
Block a user