[pypy-svn] r14885 - pypy/dist/pypy/module/recparser
ludal at codespeak.net
ludal at codespeak.net
Thu Jul 21 19:25:01 CEST 2005
Author: ludal
Date: Thu Jul 21 19:25:00 2005
New Revision: 14885
Modified:
pypy/dist/pypy/module/recparser/pyparser.py
Log:
one more function that couldn't be annotated
Modified: pypy/dist/pypy/module/recparser/pyparser.py
==============================================================================
--- pypy/dist/pypy/module/recparser/pyparser.py (original)
+++ pypy/dist/pypy/module/recparser/pyparser.py Thu Jul 21 19:25:00 2005
@@ -20,7 +20,7 @@
self.line_info = line_info
self.tuple_stack_w = []
- def result( self ):
+ def w_result( self ):
return self.tuple_stack_w[-1]
def visit_syntaxnode( self, node ):
@@ -74,7 +74,7 @@
"""
visitor = SyntaxToTupleVisitor(self.space, line_info )
self.node.visit( visitor )
- return visitor.result()
+ return visitor.w_result()
descr_totuple.unwrap_spec=['self', int]
@@ -165,7 +165,6 @@
def ast2tuple(space, node, line_info=0):
"""Quick dummy implementation of parser.ast2tuple(tree) function"""
- tuples = node.totuple(line_info)
- return space.wrap(tuples)
+ return node.descr_totuple( line_info )
ast2tuple.unwrap_spec = [ObjSpace, STType, int]
More information about the Pypy-commit
mailing list