mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 03:42:35 +01:00
pep8: Ignore line break before binary operator
PEP8 has switched its guidance [1] for where a line break should occur in relation to a binary operator, so don't raise this warning for new code and update the code base to follow the new style. [1] https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
This commit is contained in:
@@ -343,7 +343,7 @@ def _read_pod(fh, fmt=None):
|
||||
fmt = os.path.splitext(fh.name)[1].lower().strip('.')
|
||||
if fmt == '':
|
||||
# Special case of no given file extension
|
||||
message = ("Could not determine format " +
|
||||
message = ("Could not determine format "
|
||||
"from file extension for \"{}\". "
|
||||
"Please specify it or modify the fmt parameter.")
|
||||
raise ValueError(message.format(getattr(fh, 'name', '<none>')))
|
||||
|
Reference in New Issue
Block a user