[pypy-svn] r14857 - pypy/dist/pypy/interpreter/pyparser

ludal at codespeak.net ludal at codespeak.net
Thu Jul 21 14:10:43 CEST 2005


Author: ludal
Date: Thu Jul 21 14:10:42 2005
New Revision: 14857

Modified:
   pypy/dist/pypy/interpreter/pyparser/grammar.py
   pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py
Log:
oops, forgot to run the tests :(


Modified: pypy/dist/pypy/interpreter/pyparser/grammar.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/grammar.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/grammar.py	Thu Jul 21 14:10:42 2005
@@ -134,7 +134,7 @@
     def context(self):
         """Returns the state of the builder to be restored later"""
         #print "Save Stack:", self.stack
-        return BaseGrammarBuilderContext(self.stack)
+        return BaseGrammarBuilderContext(len(self.stack))
 
     def restore(self, ctx):
         assert isinstance(ctx, BaseGrammarBuilderContext)

Modified: pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/tuplebuilder.py	Thu Jul 21 14:10:42 2005
@@ -54,7 +54,7 @@
     def context(self):
         """Returns the state of the builder to be restored later"""
         #print "Save Stack:", self.stack
-        return TupleBuilderContext(self.stack)
+        return TupleBuilderContext(len(self.stack))
 
     def restore(self, ctx):
         assert isinstance(ctx, TupleBuilderContext)



More information about the Pypy-commit mailing list