summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-08-14 11:31:24 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-14 11:31:24 +0000
commitb088a079cc1e147885072e413596d2b22e0a06c7 (patch)
tree3f763f5a756627d22d4c97ea07ada2ffbeb2f0d1 /giscanner
parentc1b7b4da1a7de70a2d2bbab8f62292407a8180fc (diff)
downloadgobject-introspection-b088a079cc1e147885072e413596d2b22e0a06c7.tar.gz
Avoid importing two GObject symbols in transformer.py
svn path=/trunk/; revision=372
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/transformer.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 666d7705..acadc1de 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -20,8 +20,9 @@
from giscanner.ast import (Callback, Enum, Function, Namespace, Member,
Parameter, Return, Sequence, Struct, Field,
- Type, Alias, type_name_from_ctype)
-from .glibast import GLibBoxed, GLibInterface, GLibObject
+ Type, Alias, Interface, Class,
+ type_name_from_ctype)
+from .glibast import GLibBoxed
from giscanner.sourcescanner import (
SourceSymbol, ctype_name, CTYPE_POINTER,
CTYPE_BASIC_TYPE, CTYPE_UNION, CTYPE_ARRAY, CTYPE_TYPEDEF,
@@ -82,7 +83,7 @@ class Transformer(object):
for node in parser.get_nodes():
if hasattr(node, 'ctype'):
self._ctype_names[node.ctype] = (nsname, node)
- if isinstance(node, (GLibBoxed, GLibInterface, GLibObject)):
+ if isinstance(node, (GLibBoxed, Interface, Class)):
self._type_names[node.type_name] = (nsname, node)
elif isinstance(node, Alias):
self._alias_names[node.name] = (nsname, node)