[pypy-svn] r46507 - pypy/dist/pypy/lib
tismer at codespeak.net
tismer at codespeak.net
Wed Sep 12 18:49:17 CEST 2007
Author: tismer
Date: Wed Sep 12 18:49:17 2007
New Revision: 46507
Modified:
pypy/dist/pypy/lib/stackless.py
Log:
space/tab quirks
Modified: pypy/dist/pypy/lib/stackless.py
==============================================================================
--- pypy/dist/pypy/lib/stackless.py (original)
+++ pypy/dist/pypy/lib/stackless.py Wed Sep 12 18:49:17 2007
@@ -402,8 +402,8 @@
def insert(self):
if self.blocked:
raise RuntimeError, "You cannot run a blocked tasklet"
- if not self.alive:
- raise RuntimeError, "You cannot run an unbound(dead) tasklet"
+ if not self.alive:
+ raise RuntimeError, "You cannot run an unbound(dead) tasklet"
_scheduler_append(self)
def remove(self):
@@ -411,7 +411,7 @@
raise RuntimeError, "You cannot remove a blocked tasklet."
if self is getcurrent():
raise RuntimeError, "The current tasklet cannot be removed."
- # not sure if I will revive this " Use t=tasklet().capture()"
+ # not sure if I will revive this " Use t=tasklet().capture()"
_scheduler_remove(self)
def __reduce__(self):
More information about the Pypy-commit
mailing list