summaryrefslogtreecommitdiff
path: root/Python/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/context.c')
-rw-r--r--Python/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/context.c b/Python/context.c
index 5d38550840..1ffae9871b 100644
--- a/Python/context.c
+++ b/Python/context.c
@@ -1309,7 +1309,7 @@ _PyContext_Init(PyInterpreterState *interp)
PyObject *missing = get_token_missing();
if (PyDict_SetItemString(
- PyContextToken_Type.tp_dict, "MISSING", missing))
+ _PyType_GetDict(&PyContextToken_Type), "MISSING", missing))
{
Py_DECREF(missing);
return _PyStatus_ERR("can't init context types");