[libvirt] [PATCH] docs: Fix apibuild.py syntax

John Ferlan posted 1 patch 6 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180315211336.27546-1-jferlan@redhat.com
Test syntax-check passed
docs/apibuild.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt] [PATCH] docs: Fix apibuild.py syntax
Posted by John Ferlan 6 years ago
Commit id '477502de3' altered the entry to add one too many closing
parenthesis ')' and that propagated into commit id '9176b42bd'.

Signed-off-by: John Ferlan <jferlan@redhat.com>
---

 Pushed as a build breaker:

  GEN      news.html
  File "./apibuild.py", line 481
    line.split())))
                  ^
SyntaxError: invalid syntax

 docs/apibuild.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/apibuild.py b/docs/apibuild.py
index ba359c98c..67b7eed1e 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -478,7 +478,7 @@ class CLexer:
 
             if line[0] == '#':
                 self.tokens = list(map((lambda x: ('preproc', x)),
-                                       line.split())))
+                                       line.split()))
 
                 # We might have whitespace between the '#' and preproc
                 # macro name, so instead of having a single token element
-- 
2.13.6

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list