diff options
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 3 |
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)) |