1.1 --- a/micropython/common.py Sat Oct 26 01:55:16 2013 +0200
1.2 +++ b/micropython/common.py Sat Oct 26 20:10:34 2013 +0200
1.3 @@ -22,7 +22,7 @@
1.4 from compiler.ast import AssAttr, Getattr, Name
1.5 import compiler.ast
1.6 from micropython.basicdata import Const, Constant, TypedInstance
1.7 -from micropython.data import Attr, Class, Module
1.8 +from micropython.data import BaseAttr, Class, Module
1.9 from micropython.errors import *
1.10 from os.path import split
1.11
1.12 @@ -102,7 +102,7 @@
1.13 if isinstance(obj, (Constant, TypedInstance)):
1.14 return None, obj
1.15
1.16 - if isinstance(obj, Attr):
1.17 + if isinstance(obj, BaseAttr):
1.18 return obj, obj.get_value()
1.19
1.20 return None
1.21 @@ -150,7 +150,7 @@
1.22 # Permitting multiple expression types if they provide the
1.23 # attribute.
1.24
1.25 - if isinstance(expr, Attr):
1.26 + if isinstance(expr, BaseAttr):
1.27 exprs = expr.get_values()
1.28 else:
1.29 exprs = [expr]