[libvirt] [PATCH] apibuild: Turn hidden_macros into array

Michal Privoznik mprivozn at redhat.com
Fri Apr 22 09:09:37 UTC 2016


This is an array, not a hash table. It makes no problem with
newer pythons, but with python2.6 it is a problem:

    File "../../docs/apibuild.py", line 117
      "VIR_DEPRECATED", # internal macro to mark deprecated apis
                      ^
  SyntaxError: invalid syntax

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 docs/apibuild.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/apibuild.py b/docs/apibuild.py
index 9c82c4a..d065d56 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -113,10 +113,10 @@ ignored_macros = {
 }
 
 # macros that should be completely skipped
-hidden_macros = {
+hidden_macros = [
   "VIR_DEPRECATED", # internal macro to mark deprecated apis
   "VIR_EXPORT_VAR", # internal macro to mark exported vars
-}
+]
 
 def escape(raw):
     raw = string.replace(raw, '&', '&')
-- 
2.7.3




More information about the libvir-list mailing list