1.1 --- a/micropython/common.py Sat Jul 14 01:24:17 2012 +0200
1.2 +++ b/micropython/common.py Sat Jul 14 01:37:42 2012 +0200
1.3 @@ -79,12 +79,9 @@
1.4 # not that of a general instance or an unresolved name, attempt to
1.5 # identify it.
1.6
1.7 - if hasattr(node, "_attr") and not isinstance(node._attr, (Instance, UnresolvedName)):
1.8 + if hasattr(node, "_attr") and isinstance(node._attr, Attr):
1.9 attr = node._attr
1.10 - if isinstance(attr, Attr):
1.11 - target_names.add((attr.parent.full_name(), attr.is_static_attribute()))
1.12 - else:
1.13 - target_names.add((attr.full_name(), attr.is_static_attribute()))
1.14 + target_names.add((attr.parent.full_name(), attr.is_static_attribute()))
1.15
1.16 # Otherwise, attempt to employ the attribute usage observations.
1.17