summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-09-05 17:50:46 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:57:29 +0200
commit717be6d97095d5f0641d8d1ef74947dc75b3f204 (patch)
treea15bfcd2f2bc2fd984ff840a1a51cd52711ed1da /giscanner
parentaa4a40288533b3d06d69ebe8fe1a12bfec2a8cda (diff)
downloadgobject-introspection-717be6d97095d5f0641d8d1ef74947dc75b3f204.tar.gz
giscanner: write '<varargs/>' instead of '<varargs></varargs>'
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/girwriter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 2bc9f153..2f3d59cc 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -294,8 +294,7 @@ class GIRWriter(XMLWriter):
elif ntype.ctype:
attrs.append(('c:type', ntype.ctype))
if isinstance(ntype, ast.Varargs):
- with self.tagcontext('varargs', []):
- pass
+ self.write_tag('varargs', [])
elif isinstance(ntype, ast.Array):
if ntype.array_type != ast.Array.C:
attrs.insert(0, ('name', ntype.array_type))