[pypy-commit] pypy stacklet: Annotation fix.
arigo
noreply at buildbot.pypy.org
Mon Aug 8 15:19:03 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: stacklet
Changeset: r46364:7d50fed00006
Date: 2011-08-08 11:22 +0000
http://bitbucket.org/pypy/pypy/changeset/7d50fed00006/
Log: Annotation fix.
diff --git a/pypy/module/_stacklet/interp_stacklet.py b/pypy/module/_stacklet/interp_stacklet.py
--- a/pypy/module/_stacklet/interp_stacklet.py
+++ b/pypy/module/_stacklet/interp_stacklet.py
@@ -8,7 +8,7 @@
from pypy.interpreter.baseobjspace import Wrappable
from pypy.interpreter.typedef import TypeDef
from pypy.interpreter.gateway import interp2app
-from pypy.rlib.debug import ll_assert
+from pypy.rlib.debug import ll_assert, fatalerror
class SThread(StackletThread):
@@ -84,13 +84,15 @@
def raising_exception(self):
while self.current_stacklet is None:
self = self.parent
- ll_assert(self is not None, "StackTreeNode chain is empty!")
+ if self is None:
+ fatalerror("StackTreeNode chain is empty!")
res = self.current_stacklet
self.current_stacklet = None
try:
return res.consume_handle()
except OperationError:
- ll_assert(False, "StackTreeNode contains an empty stacklet")
+ fatalerror("StackTreeNode contains an empty stacklet")
+ raise ValueError # annotator hack, but cannot return
def __repr__(self):
s = '|>'
More information about the pypy-commit
mailing list