[pypy-svn] r16314 - in pypy/dist/pypy: interpreter/astcompiler interpreter/stablecompiler lib/_stablecompiler module/recparser/compiler
ac at codespeak.net
ac at codespeak.net
Tue Aug 23 18:55:28 CEST 2005
Author: ac
Date: Tue Aug 23 18:55:28 2005
New Revision: 16314
Modified:
pypy/dist/pypy/interpreter/astcompiler/pycodegen.py
pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py
pypy/dist/pypy/lib/_stablecompiler/pycodegen.py
pypy/dist/pypy/module/recparser/compiler/pycodegen.py
Log:
Change errormessage to match that of CPython.
Modified: pypy/dist/pypy/interpreter/astcompiler/pycodegen.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/pycodegen.py (original)
+++ pypy/dist/pypy/interpreter/astcompiler/pycodegen.py Tue Aug 23 18:55:28 2005
@@ -524,7 +524,7 @@
self.emit('CONTINUE_LOOP', loop_block)
self.nextBlock()
elif kind == END_FINALLY:
- msg = "'continue' not allowed inside 'finally' clause (%s, %d)"
+ msg = "'continue' not supported inside 'finally' clause (%s, %d)"
raise SyntaxError, msg % (node.filename, node.lineno)
def visitTest(self, node, jump):
Modified: pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py
==============================================================================
--- pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py (original)
+++ pypy/dist/pypy/interpreter/stablecompiler/pycodegen.py Tue Aug 23 18:55:28 2005
@@ -528,7 +528,7 @@
self.emit('CONTINUE_LOOP', loop_block)
self.nextBlock()
elif kind == END_FINALLY:
- msg = "'continue' not allowed inside 'finally' clause (%s, %d)"
+ msg = "'continue' not supported inside 'finally' clause (%s, %d)"
raise SyntaxError, msg % (node.filename, node.lineno)
def visitTest(self, node, jump):
Modified: pypy/dist/pypy/lib/_stablecompiler/pycodegen.py
==============================================================================
--- pypy/dist/pypy/lib/_stablecompiler/pycodegen.py (original)
+++ pypy/dist/pypy/lib/_stablecompiler/pycodegen.py Tue Aug 23 18:55:28 2005
@@ -529,7 +529,7 @@
self.emit('CONTINUE_LOOP', loop_block)
self.nextBlock()
elif kind == END_FINALLY:
- msg = "'continue' not allowed inside 'finally' clause (%s, %d)"
+ msg = "'continue' not supported inside 'finally' clause (%s, %d)"
raise SyntaxError, msg % (node.filename, node.lineno)
def visitTest(self, node, jump):
Modified: pypy/dist/pypy/module/recparser/compiler/pycodegen.py
==============================================================================
--- pypy/dist/pypy/module/recparser/compiler/pycodegen.py (original)
+++ pypy/dist/pypy/module/recparser/compiler/pycodegen.py Tue Aug 23 18:55:28 2005
@@ -525,7 +525,7 @@
self.emit('CONTINUE_LOOP', loop_block)
self.nextBlock()
elif kind == END_FINALLY:
- msg = "'continue' not allowed inside 'finally' clause (%s, %d)"
+ msg = "'continue' not supported inside 'finally' clause (%s, %d)"
raise SyntaxError, msg % (node.filename, node.lineno)
def visitTest(self, node, jump):
More information about the Pypy-commit
mailing list