1.1 --- a/micropython/__init__.py Thu Jun 02 23:08:17 2011 +0200
1.2 +++ b/micropython/__init__.py Fri Jun 03 01:30:35 2011 +0200
1.3 @@ -686,7 +686,9 @@
1.4 # properly collect usage from it.
1.5
1.6 parent = attr.parent
1.7 - if isinstance(parent, micropython.data.Instance):
1.8 + if parent is None:
1.9 + continue
1.10 + elif isinstance(parent, micropython.data.Instance):
1.11 parentname = objname
1.12 else:
1.13 parentname = parent.full_name()
2.1 --- a/micropython/table.py Thu Jun 02 23:08:17 2011 +0200
2.2 +++ b/micropython/table.py Fri Jun 03 01:30:35 2011 +0200
2.3 @@ -400,7 +400,10 @@
2.4 if not attributes.has_key(name):
2.5 continue
2.6
2.7 - if attributes[name].is_static_attribute():
2.8 + attr = attributes[name]
2.9 + if isinstance(attr, (Class, Module)):
2.10 + pass
2.11 + elif attr.is_static_attribute():
2.12 is_static = 1
2.13 else:
2.14 is_instance = 1