1.1 --- a/micropython/ast.py Sun Aug 29 02:03:24 2010 +0200
1.2 +++ b/micropython/ast.py Sun Aug 29 02:40:57 2010 +0200
1.3 @@ -377,7 +377,7 @@
1.4 self.dispatch(node.node)
1.5 temp_target, target, temp_context = self._generateCallFunc(node.args, node)
1.6 self._doCallFunc(temp_target, target)
1.7 - self._endCallFunc(temp_target, target, temp_context)
1.8 + self._endCallFunc(temp_target, temp_context)
1.9
1.10 def visitConst(self, node):
1.11 const = self.importer.get_constant(node.value)
1.12 @@ -432,7 +432,7 @@
1.13 self._generateAttr(node, "__getitem__", self.attribute_load_instructions)
1.14 temp_target, target, temp_context = self._generateCallFunc([slice], node)
1.15 self._doCallFunc(temp_target, target)
1.16 - self._endCallFunc(temp_target, target, temp_context)
1.17 + self._endCallFunc(temp_target, temp_context)
1.18
1.19 def visitSubscript(self, node):
1.20 self.dispatch(node.expr)
1.21 @@ -440,7 +440,7 @@
1.22 self._generateAttr(node, "__getitem__", self.attribute_load_instructions)
1.23 temp_target, target, temp_context = self._generateCallFunc(node.subs, node)
1.24 self._doCallFunc(temp_target, target)
1.25 - self._endCallFunc(temp_target, target, temp_context)
1.26 + self._endCallFunc(temp_target, temp_context)
1.27
1.28 def visitTuple(self, node):
1.29 self._generateTuple(node)
1.30 @@ -488,7 +488,7 @@
1.31 self.new_op(temp_getitem)
1.32 temp_target, target, temp_context = self._generateCallFunc([compiler.ast.Const(i)], node)
1.33 self._doCallFunc(temp_target, target)
1.34 - self._endCallFunc(temp_target, target, temp_context)
1.35 + self._endCallFunc()
1.36
1.37 # Provide a different source value.
1.38 # NOTE: Permitting immediate usage given that neither name nor
1.39 @@ -675,7 +675,7 @@
1.40 self._generateAttr(node, "__iter__", self.attribute_load_instructions)
1.41 temp_target, target, temp_context = self._generateCallFunc([], node)
1.42 self._doCallFunc(temp_target, target)
1.43 - self._endCallFunc(temp_target, target, temp_context)
1.44 + self._endCallFunc(temp_target, temp_context)
1.45
1.46 # Use a long-lasting temporary storage slot, since any result from the
1.47 # __iter__ method will not remain around for long.
1.48 @@ -697,7 +697,7 @@
1.49 self._generateAttr(node, "next", self.attribute_load_instructions)
1.50 temp_target, target, temp_context = self._generateCallFunc([], node)
1.51 self._doCallFunc(temp_target, target)
1.52 - self._endCallFunc(temp_target, target, temp_context)
1.53 + self._endCallFunc(temp_target, temp_context)
1.54
1.55 # Record the value to be assigned.
1.56