[pypy-svn] r12786 - pypy/branch/pycompiler/module/recparser

adim at codespeak.net adim at codespeak.net
Wed May 25 09:54:26 CEST 2005


Author: adim
Date: Wed May 25 09:54:26 2005
New Revision: 12786

Modified:
   pypy/branch/pycompiler/module/recparser/pythonutil.py
Log:
we don't want linenos in nested tuples when using pypy_parse

Modified: pypy/branch/pycompiler/module/recparser/pythonutil.py
==============================================================================
--- pypy/branch/pycompiler/module/recparser/pythonutil.py	(original)
+++ pypy/branch/pycompiler/module/recparser/pythonutil.py	Wed May 25 09:54:26 2005
@@ -22,7 +22,7 @@
     pyf = file(filename)
     text = pyf.read()
     pyf.close()
-    builder = TupleBuilder( PYTHON_PARSER.rules )
+    builder = TupleBuilder( PYTHON_PARSER.rules, lineno=False)
     pythonparse.parse_python_source(text, PYTHON_PARSER, 'file_input', builder)
     nested_tuples = builder.stack[-1]
     if hasattr(builder, '_source_encoding'):



More information about the Pypy-commit mailing list