diff options
Diffstat (limited to 'Python/context.c')
-rw-r--r-- | Python/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/context.c b/Python/context.c index 9560fb3f667..ad47992d9e3 100644 --- a/Python/context.c +++ b/Python/context.c @@ -728,7 +728,7 @@ static int contextvar_set(PyContextVar *var, PyObject *val) { var->var_cached = NULL; - PyThreadState *ts = PyThreadState_Get(); + PyThreadState *ts = _PyThreadState_GET(); PyContext *ctx = context_get(); if (ctx == NULL) { |