summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2022-08-04 15:56:13 +0200
committerIlya Maximets <i.maximets@ovn.org>2022-08-04 18:13:20 +0200
commit434025a15453452f76962b5f625dbe30c61615fd (patch)
tree15de0b1ae453aa004cb692d7499c9032ae6ae008 /python
parent398623a63ed4f35e67292740466a99db018f75b6 (diff)
downloadopenvswitch-434025a15453452f76962b5f625dbe30c61615fd.tar.gz
python: Fix E275 missing whitespace after keyword.
With just released flake8 5.0 we're getting a bunch of E275 errors: utilities/bugtool/ovs-bugtool.in:959:23: E275 missing whitespace after keyword tests/test-ovsdb.py:623:11: E275 missing whitespace after keyword python/setup.py:105:8: E275 missing whitespace after keyword python/setup.py:106:8: E275 missing whitespace after keyword python/ovs/db/idl.py:145:15: E275 missing whitespace after keyword python/ovs/db/idl.py:167:15: E275 missing whitespace after keyword make[2]: *** [flake8-check] Error 1 This breaks CI on branches below 2.16. We don't see a problem right now on newer branches because we're installing extra dependencies that backtrack flake8 down to 4.1 or even 3.9. Acked-by: Mike Pattrick <mkp@redhat.com> Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'python')
-rw-r--r--python/ovs/db/idl.py4
-rw-r--r--python/setup.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py
index b87099ff5..8f13d1f55 100644
--- a/python/ovs/db/idl.py
+++ b/python/ovs/db/idl.py
@@ -142,7 +142,7 @@ class ConditionState(object):
class IdlTable(object):
def __init__(self, idl, table):
- assert(isinstance(table, ovs.db.schema.TableSchema))
+ assert isinstance(table, ovs.db.schema.TableSchema)
self._table = table
self.need_table = False
self.rows = custom_index.IndexedRows(self)
@@ -164,7 +164,7 @@ class IdlTable(object):
@condition.setter
def condition(self, condition):
- assert(isinstance(condition, list))
+ assert isinstance(condition, list)
self.idl.cond_change(self.name, condition)
@classmethod
diff --git a/python/setup.py b/python/setup.py
index 062901ddd..27684c404 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -124,6 +124,6 @@ except BuildFailed:
print("Retrying the build without the C extension.")
print("*" * 75)
- del(setup_args['cmdclass'])
- del(setup_args['ext_modules'])
+ del setup_args['cmdclass']
+ del setup_args['ext_modules']
setuptools.setup(**setup_args)