1.1 --- a/micropython/table.py Mon Jul 01 12:57:30 2013 +0200
1.2 +++ b/micropython/table.py Tue Jul 02 00:51:04 2013 +0200
1.3 @@ -175,21 +175,9 @@
1.4 if isinstance(attr, (Class, Module)):
1.5 return (attr_index, None, None)
1.6
1.7 - # Get the absolute location for classes and modules.
1.8 -
1.9 - if attr.parent is not None and attr.is_static_attribute():
1.10 - location = attr.parent.location or 0
1.11 - else:
1.12 - location = 0
1.13 + # Attribute index/code, attribute type, position in structure.
1.14
1.15 - if attr.position is not None:
1.16 - position = attr.position + location + 1 # skip structure header
1.17 - else:
1.18 - position = None # NOTE: Should fix unpositioned attributes.
1.19 -
1.20 - # Attribute index/code, attribute type, location/position.
1.21 -
1.22 - return (attr_index, attr.is_static_attribute(), position)
1.23 + return (attr_index, attr.is_static_attribute(), attr.position)
1.24
1.25 class ParameterList(List):
1.26