From 434025a15453452f76962b5f625dbe30c61615fd Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Thu, 4 Aug 2022 15:56:13 +0200 Subject: 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 Acked-by: Dumitru Ceara Signed-off-by: Ilya Maximets --- tests/test-ovsdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.1