mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-18 22:36:01 +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:
dev_scripts
wa
commands
framework
instruments
output_processors
utils
workloads
@ -124,8 +124,8 @@ class PostgresqlResultProcessor(OutputProcessor):
|
||||
|
||||
if not psycopg2:
|
||||
raise ImportError(
|
||||
'The psycopg2 module is required for the ' +
|
||||
'Postgresql Output Processor: {}'.format(import_error_msg))
|
||||
'The psycopg2 module is required for the '
|
||||
+ 'Postgresql Output Processor: {}'.format(import_error_msg))
|
||||
# N.B. Typecasters are for postgres->python and adapters the opposite
|
||||
self.connect_to_database()
|
||||
|
||||
@ -515,8 +515,8 @@ class PostgresqlResultProcessor(OutputProcessor):
|
||||
self.conn = connect(dsn=dsn)
|
||||
except Psycopg2Error as e:
|
||||
raise OutputProcessorError(
|
||||
"Database error, if the database doesn't exist, " +
|
||||
"please use 'wa create database' to create the database: {}".format(e))
|
||||
"Database error, if the database doesn't exist, "
|
||||
+ "please use 'wa create database' to create the database: {}".format(e))
|
||||
self.cursor = self.conn.cursor()
|
||||
self.verify_schema_versions()
|
||||
|
||||
|
Reference in New Issue
Block a user