1.1 --- a/micropython/data.py Wed Aug 11 00:04:11 2010 +0200
1.2 +++ b/micropython/data.py Sun Aug 15 21:49:47 2010 +0200
1.3 @@ -1303,18 +1303,13 @@
1.4
1.5 # Initialise attribute usage.
1.6
1.7 - for arg in argnames:
1.8 + if node is not None:
1.9 + for arg in argnames:
1.10
1.11 - # Define attribute users.
1.12 + # Define attribute users.
1.13
1.14 - if node is not None:
1.15 self._define_attribute_user_for_name(node, arg)
1.16
1.17 - # Or just record the usage.
1.18 -
1.19 - else:
1.20 - self.attributes_used[-1][arg] = set()
1.21 -
1.22 # Caches.
1.23
1.24 self.localnames = None # cache for locals
1.25 @@ -1520,7 +1515,7 @@
1.26 "Make an instantiator function from a method, keeping all arguments."
1.27
1.28 function = Function(self.parent.name, self.parent.parent, self.argnames, self.defaults,
1.29 - self.has_star, self.has_dstar, self.dynamic_def, self.module, self.astnode)
1.30 + self.has_star, self.has_dstar, self.dynamic_def, self.module)
1.31 function.default_attrs = self.default_attrs
1.32 return function
1.33