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

benjamin at codespeak.net benjamin at codespeak.net
Tue Jul 21 14:56:21 CEST 2009


Author: benjamin
Date: Tue Jul 21 14:56:20 2009
New Revision: 66481

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
switch to cpython error message

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	Tue Jul 21 14:56:20 2009
@@ -401,7 +401,7 @@
 
     def visit_Continue(self, cont):
         if not self.frame_blocks:
-            self.error("'continue' outside look", cont)
+            self.error("'continue' not properly in loop", cont)
         current_block, block = self.frame_blocks[-1]
         if current_block == F_BLOCK_LOOP:
             self.emit_jump(ops.JUMP_ABSOLUTE, block, True)
@@ -417,7 +417,7 @@
                                    "clause",
                                cont)
             else:
-                self.error("'continue' outside loop", cont)
+                self.error("'continue' not properly in loop", cont)
         elif current_block == F_BLOCK_FINALLY_END:
             self.error("'continue' not supported inside 'finally' clause", cont)
 



More information about the Pypy-commit mailing list