[gtk-doc] mkdb: remove parenthesis from retrun value assignment



commit 7afb974a974ec0269b486c3b3d7aefd2ecae8871
Author: Stefan Sauer <ensonic users sf net>
Date:   Fri Nov 23 07:54:30 2018 +0100

    mkdb: remove parenthesis from retrun value assignment

 gtkdoc/mkdb.py | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/gtkdoc/mkdb.py b/gtkdoc/mkdb.py
index 96fb9f7..a39d003 100644
--- a/gtkdoc/mkdb.py
+++ b/gtkdoc/mkdb.py
@@ -1453,7 +1453,7 @@ def OutputStruct(symbol, declaration):
 
             desc += "<row role=\"member\"><entry role=\"struct_member_name\"><para>%s</para></entry>\n" % 
text
             if field_name in field_descrs:
-                (field_descr, param_annotations) = ExpandAnnotation(symbol, field_descrs[field_name])
+                field_descr, param_annotations = ExpandAnnotation(symbol, field_descrs[field_name])
                 field_descr = ConvertMarkDown(symbol, field_descr)
                 # trim
                 field_descr = re.sub(r'^(\s|\n)+', '', field_descr, flags=re.M | re.S)
@@ -1588,7 +1588,7 @@ def OutputUnion(symbol, declaration):
 
             desc += "<row><entry role=\"union_member_name\"><para>%s</para></entry>\n" % text
             if field_name in field_descrs:
-                (field_descr, param_annotations) = ExpandAnnotation(symbol, field_descrs[field_name])
+                field_descr, param_annotations = ExpandAnnotation(symbol, field_descrs[field_name])
                 field_descr = ConvertMarkDown(symbol, field_descr)
 
                 # trim
@@ -1798,8 +1798,7 @@ def OutputVariable(symbol, declaration):
 
     if symbol in SymbolAnnotations:
         param_desc = SymbolAnnotations[symbol]
-        param_annotations = ''
-        (param_desc, param_annotations) = ExpandAnnotation(symbol, param_desc)
+        param_desc, param_annotations = ExpandAnnotation(symbol, param_desc)
         if param_annotations != '':
             desc += "\n<para>%s</para>" % param_annotations
 
@@ -1891,7 +1890,7 @@ def OutputFunction(symbol, declaration, symbol_type):
 
     if symbol in SymbolAnnotations:
         param_desc = SymbolAnnotations[symbol]
-        (param_desc, param_annotations) = ExpandAnnotation(symbol, param_desc)
+        param_desc, param_annotations = ExpandAnnotation(symbol, param_desc)
         if param_annotations != '':
             desc += "\n<para>%s</para>" % param_annotations
 
@@ -1936,7 +1935,7 @@ def OutputParamDescriptions(symbol_type, symbol, fields):
         unused_parameters = ''
 
         for param_name, param_desc in params.items():
-            (param_desc, param_annotations) = ExpandAnnotation(symbol, param_desc)
+            param_desc, param_annotations = ExpandAnnotation(symbol, param_desc)
             param_desc = ConvertMarkDown(symbol, param_desc)
             # trim
             param_desc = re.sub(r'^(\s|\n)+', '', param_desc, flags=re.M | re.S)
@@ -3428,7 +3427,7 @@ def GetSignals(gobject):
 
             if symbol in SymbolAnnotations:
                 param_desc = SymbolAnnotations[symbol]
-                (param_desc, param_annotations) = ExpandAnnotation(symbol, param_desc)
+                param_desc, param_annotations = ExpandAnnotation(symbol, param_desc)
                 if param_annotations != '':
                     desc += "\n<para>%s</para>" % param_annotations
 
@@ -3554,7 +3553,7 @@ def GetArgs(gobject):
             arg_desc += blurb
             if symbol in SymbolAnnotations:
                 param_desc = SymbolAnnotations[symbol]
-                (param_desc, param_annotations) = ExpandAnnotation(symbol, param_desc)
+                param_desc, param_annotations = ExpandAnnotation(symbol, param_desc)
                 if param_annotations != '':
                     arg_desc += "\n<para>%s</para>" % param_annotations
 


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