summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/ovs/db/idl.py4
-rw-r--r--python/setup.py4
-rw-r--r--tests/test-ovsdb.py2
-rwxr-xr-xutilities/bugtool/ovs-bugtool.in2
4 files changed, 6 insertions, 6 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)
diff --git a/tests/test-ovsdb.py b/tests/test-ovsdb.py
index 853264f22..402cacbe9 100644
--- a/tests/test-ovsdb.py
+++ b/tests/test-ovsdb.py
@@ -620,7 +620,7 @@ def update_condition(idl, commands):
commands = commands[len("condition "):].split(";")
for command in commands:
command = command.split(" ")
- if(len(command) != 2):
+ if len(command) != 2:
sys.stderr.write("Error parsing condition %s\n" % command)
sys.exit(1)
diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in
index fa62cbe94..fee0de853 100755
--- a/utilities/bugtool/ovs-bugtool.in
+++ b/utilities/bugtool/ovs-bugtool.in
@@ -956,7 +956,7 @@ def load_plugins(just_capabilities=False, filter=None):
filters = []
else:
filters = filters_tmp.split(',')
- if not(filter is None or filter in filters):
+ if not (filter is None or filter in filters):
continue
if el.tagName == "files":
newest_first = getBoolAttr(el, 'newest_first')