]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
scripts: apibuild: fix spacing
authorJán Tomko <jtomko@redhat.com>
Tue, 21 Sep 2021 16:04:00 +0000 (18:04 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 21 Sep 2021 16:04:00 +0000 (18:04 +0200)
Syntax check reports:
E226 missing whitespace around arithmetic operator

Signed-off-by: Ján Tomko <jtomko@redhat.com>
scripts/apibuild.py

index 722fd33f0ed78e98d33bab2b2172dac1a9e03cf4..9b29466e1df4a01a0a1b13448f1df6f26026d0dc 100755 (executable)
@@ -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