diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-02 18:43:51 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-02 18:43:51 -0400 |
commit | aab3c4a2110c3184ac0e9fc843fb1f3e07fbaf53 (patch) | |
tree | 25366f646da729ac7c4f351f5cbacc763b866ac6 /Python/pystate.c | |
parent | 231d90609b026dc709efd16d5bda610fbb12ebad (diff) | |
download | cpython-aab3c4a2110c3184ac0e9fc843fb1f3e07fbaf53.tar.gz cpython-aab3c4a2110c3184ac0e9fc843fb1f3e07fbaf53.zip |
Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 4ac05d66256..7e0267ae1d0 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); |