[pypy-commit] pypy default: Better order for this. Corner-casish and not important.
arigo
noreply at buildbot.pypy.org
Sat Sep 3 16:56:19 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r47046:2293ffeeaf79
Date: 2011-09-03 16:55 +0200
http://bitbucket.org/pypy/pypy/changeset/2293ffeeaf79/
Log: Better order for this. Corner-casish and not important.
diff --git a/pypy/module/_continuation/interp_continuation.py b/pypy/module/_continuation/interp_continuation.py
--- a/pypy/module/_continuation/interp_continuation.py
+++ b/pypy/module/_continuation/interp_continuation.py
@@ -43,11 +43,11 @@
def switch(self, w_to):
to = self.space.interp_w(W_Continulet, w_to, can_be_None=True)
if to is not None:
- if self is to: # double-switch to myself: no-op
- return get_result()
if to.sthread is None:
start_state.clear()
raise geterror(self.space, "continulet not initialized yet")
+ if self is to: # double-switch to myself: no-op
+ return get_result()
if self.sthread is None:
start_state.clear()
raise geterror(self.space, "continulet not initialized yet")
More information about the pypy-commit
mailing list