1.1 --- a/micropython/common.py Sat Jul 14 01:24:06 2012 +0200
1.2 +++ b/micropython/common.py Sat Jul 14 01:24:17 2012 +0200
1.3 @@ -75,6 +75,10 @@
1.4
1.5 target_names = set()
1.6
1.7 + # Where an attribute could already be detected and where its nature is
1.8 + # not that of a general instance or an unresolved name, attempt to
1.9 + # identify it.
1.10 +
1.11 if hasattr(node, "_attr") and not isinstance(node._attr, (Instance, UnresolvedName)):
1.12 attr = node._attr
1.13 if isinstance(attr, Attr):
1.14 @@ -82,6 +86,8 @@
1.15 else:
1.16 target_names.add((attr.full_name(), attr.is_static_attribute()))
1.17
1.18 + # Otherwise, attempt to employ the attribute usage observations.
1.19 +
1.20 elif hasattr(node, "_attrusers"):
1.21
1.22 # Visit each attribute user.