diff options
author | Colin Walters <walters@src.gnome.org> | 2008-08-07 22:08:44 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2008-08-07 22:08:44 +0000 |
commit | b2d590a941da696ae2389a5dac49bc51feeed947 (patch) | |
tree | f74c3222ef8e802ce5d7f9cb74b179c66d3149d9 | |
parent | b39decb0f236d3e8d725197137543801a861ac1d (diff) | |
download | gobject-introspection-b2d590a941da696ae2389a5dac49bc51feeed947.tar.gz |
Avoid shadowing builtin name 'type'
svn path=/branches/gir-compiler/; revision=323
-rw-r--r-- | giscanner/girwriter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index af297e79..79287898 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -115,13 +115,13 @@ class GIRWriter(XMLWriter): with self.tagcontext('parameter', attrs): self._write_type(parameter.type) - def _write_type(self, type): - attrs = [('name', type.name)] + def _write_type(self, ntype): + attrs = [('name', ntype.name)] # FIXME: figure out if type references a basic type # or a boxed/class/interface etc. and skip # writing the ctype if the latter. if type.ctype is not None: - attrs.append(('c:type', type.ctype)) + attrs.append(('c:type', ntype.ctype)) self.write_tag('type', attrs) def _write_sequence(self, sequence): |