From aab3c4a2110c3184ac0e9fc843fb1f3e07fbaf53 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 2 Jun 2015 18:43:51 -0400 Subject: Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully --- Python/pystate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/pystate.c') diff --git a/Python/pystate.c b/Python/pystate.c index 4ac05d6625..7e0267ae1d 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); -- cgit v1.2.1