gobject-introspection r323 - branches/gir-compiler/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r323 - branches/gir-compiler/giscanner
- Date: Thu, 7 Aug 2008 22:08:44 +0000 (UTC)
Author: walters
Date: Thu Aug 7 22:08:44 2008
New Revision: 323
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=323&view=rev
Log:
Avoid shadowing builtin name 'type'
Modified:
branches/gir-compiler/giscanner/girwriter.py
Modified: branches/gir-compiler/giscanner/girwriter.py
==============================================================================
--- branches/gir-compiler/giscanner/girwriter.py (original)
+++ branches/gir-compiler/giscanner/girwriter.py Thu Aug 7 22:08:44 2008
@@ -115,13 +115,13 @@
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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]