[pypy-svn] r66471 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Tue Jul 21 05:19:21 CEST 2009


Author: benjamin
Date: Tue Jul 21 05:19:19 2009
New Revision: 66471

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py
Log:
fix some subtle lineno tests

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/assemble.py	Tue Jul 21 05:19:19 2009
@@ -541,7 +541,7 @@
         # after the loading of "b".  This works with the C Python
         # compiler because it only generates a SET_LINENO instruction
         # for the assignment.
-        if line >= 0:
+        if line > 0:
             addr = offset - self.current_off
             if not addr and not line:
                 return



More information about the Pypy-commit mailing list