[pypy-svn] r17237 - pypy/dist/pypy/interpreter/pyparser
adim at codespeak.net
adim at codespeak.net
Mon Sep 5 15:53:38 CEST 2005
Author: adim
Date: Mon Sep 5 15:53:37 2005
New Revision: 17237
Modified:
pypy/dist/pypy/interpreter/pyparser/astbuilder.py
Log:
let Node constructor use the default lineno value
Modified: pypy/dist/pypy/interpreter/pyparser/astbuilder.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/astbuilder.py (original)
+++ pypy/dist/pypy/interpreter/pyparser/astbuilder.py Mon Sep 5 15:53:37 2005
@@ -714,9 +714,9 @@
if len(atoms) > 2:
assert False, "return several stmts not implemented"
elif len(atoms) == 1:
- builder.push(ast.Return(ast.Const(builder.wrap_none()), None)) # XXX lineno
+ builder.push(ast.Return(ast.Const(builder.wrap_none()))) # XXX lineno
else:
- builder.push(ast.Return(atoms[1], None)) # XXX lineno
+ builder.push(ast.Return(atoms[1])) # XXX lineno
def build_file_input(builder, nb):
stmts = []
More information about the Pypy-commit
mailing list