[gtk-doc] common: return dicts not tuples



commit ae140bdf8ce6f9438616d3ac4f892f28047b6fc0
Author: Stefan Sauer <ensonic users sf net>
Date:   Sat May 13 18:26:00 2017 +0200

    common: return dicts not tuples

 gtkdoc/common.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc/common.py b/gtkdoc/common.py
index 4f4d9ac..a7b1f61 100644
--- a/gtkdoc/common.py
+++ b/gtkdoc/common.py
@@ -173,7 +173,7 @@ def ParseStructDeclaration(declaration, is_object, output_function_params, typef
 
     # For forward struct declarations just return an empty array.
     if re.search(r'(?:struct|union)\s+\S+\s*;', declaration, flags=re.MULTILINE | re.DOTALL):
-        return ()
+        return {}
 
     # Remove all private parts of the declaration
     # For objects, assume private
@@ -198,7 +198,7 @@ def ParseStructDeclaration(declaration, is_object, output_function_params, typef
     declaration = re.sub(r'(\{)\s*(\w)+\s+(g_iface|parent_instance|parent_class)\s*;', r'\1', declaration)
 
     if declaration.strip() == '':
-        return ()
+        return {}
 
     # Prime match after "struct/union {" declaration
     match = re.search(r'(?:struct|union)\s+\w*\s*\{', declaration, flags=re.MULTILINE | re.DOTALL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]