# HG changeset patch # User Paul Boddie # Date 1342222662 -7200 # Node ID 512fb25ed7b3f917a353f77f809f92eda56a17b2 # Parent 86cfd34651614b1a866acd960fba1305a8338b84 Removed unnecessary code that attribute usage showed to be unlikely to function. diff -r 86cfd3465161 -r 512fb25ed7b3 micropython/common.py --- a/micropython/common.py Sat Jul 14 01:24:17 2012 +0200 +++ b/micropython/common.py Sat Jul 14 01:37:42 2012 +0200 @@ -79,12 +79,9 @@ # not that of a general instance or an unresolved name, attempt to # identify it. - if hasattr(node, "_attr") and not isinstance(node._attr, (Instance, UnresolvedName)): + if hasattr(node, "_attr") and isinstance(node._attr, Attr): attr = node._attr - if isinstance(attr, Attr): - target_names.add((attr.parent.full_name(), attr.is_static_attribute())) - else: - target_names.add((attr.full_name(), attr.is_static_attribute())) + target_names.add((attr.parent.full_name(), attr.is_static_attribute())) # Otherwise, attempt to employ the attribute usage observations.