[libvirt PATCH] scripts: apibuild: fix spacing

Ján Tomko posted 1 patch 2 years, 7 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/c066cb6dc1da2f2cca853a59a06a5754bf30eb46.1632240333.git.jtomko@redhat.com
scripts/apibuild.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt PATCH] scripts: apibuild: fix spacing
Posted by Ján Tomko 2 years, 7 months ago
Syntax check reports:
E226 missing whitespace around arithmetic operator

Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
Pushed.

 scripts/apibuild.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/apibuild.py b/scripts/apibuild.py
index 722fd33f0e..9b29466e1d 100755
--- a/scripts/apibuild.py
+++ b/scripts/apibuild.py
@@ -604,10 +604,10 @@ class CLexer:
                         continue
 
                     j = i
-                    while (j + 1) < nline and line[j+1] in "+-*><=/%&!|":
+                    while (j + 1) < nline and line[j + 1] in "+-*><=/%&!|":
                         j = j + 1
 
-                    self.tokens.append(('op', line[i:j+1]))
+                    self.tokens.append(('op', line[i:j + 1]))
                     i = j + 1
                     continue
                 s = i
-- 
2.31.1