summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-06-02 22:45:11 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-06-02 22:45:11 (GMT)
commit082332ce37a75caacfaf1ce75de76b6c5faa0b6d (patch)
tree8316bccd308605a81ff2a466ab12f74517f63b1c /Python/pystate.c
parente8a21a3362de9acb24678d21daedc58a36a14cb0 (diff)
parentaab3c4a2110c3184ac0e9fc843fb1f3e07fbaf53 (diff)
downloadcpython-082332ce37a75caacfaf1ce75de76b6c5faa0b6d.zip
cpython-082332ce37a75caacfaf1ce75de76b6c5faa0b6d.tar.gz
cpython-082332ce37a75caacfaf1ce75de76b6c5faa0b6d.tar.bz2
Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully
(Merge 3.5)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 4ac05d6..7e0267a 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -213,6 +213,7 @@ new_threadstate(PyInterpreterState *interp, int init)
tstate->on_delete_data = NULL;
tstate->coroutine_wrapper = NULL;
+ tstate->in_coroutine_wrapper = 0;
if (init)
_PyThreadState_Init(tstate);