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

benjamin at codespeak.net benjamin at codespeak.net
Wed Jul 22 03:36:25 CEST 2009


Author: benjamin
Date: Wed Jul 22 03:36:24 2009
New Revision: 66495

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
note lineno for continue

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	Wed Jul 22 03:36:24 2009
@@ -399,6 +399,7 @@
         self.emit_op(ops.BREAK_LOOP)
 
     def visit_Continue(self, cont):
+        self.update_position(cont.lineno, True)
         if not self.frame_blocks:
             self.error("'continue' not properly in loop", cont)
         current_block, block = self.frame_blocks[-1]



More information about the Pypy-commit mailing list