1.1 --- a/micropython/common.py Sun Jul 01 01:04:07 2012 +0200
1.2 +++ b/micropython/common.py Sun Jul 01 01:53:28 2012 +0200
1.3 @@ -19,7 +19,7 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from micropython.data import Attr, Instance
1.8 +from micropython.data import Attr, Instance, UnresolvedName
1.9 from micropython.errors import *
1.10 import sys
1.11
1.12 @@ -70,7 +70,7 @@
1.13
1.14 target_names = set()
1.15
1.16 - if hasattr(node, "_attr") and not isinstance(node._attr, Instance):
1.17 + if hasattr(node, "_attr") and not isinstance(node._attr, (Instance, UnresolvedName)):
1.18 attr = node._attr
1.19 if isinstance(attr, Attr):
1.20 target_names.add((attr.parent.full_name(), attr.is_static_attribute()))