gh-101476: Use _PyType_GetModuleState where applicable (#102188)

This commit is contained in:
Erlend E. Aasland 2023-02-24 21:16:29 +01:00 committed by GitHub
parent 81bf10e4f2
commit 568fc0dee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 15 deletions

View file

@ -204,7 +204,7 @@ zoneinfo_get_state(PyObject *mod)
static inline zoneinfo_state *
zoneinfo_get_state_by_cls(PyTypeObject *cls)
{
zoneinfo_state *state = (zoneinfo_state *)PyType_GetModuleState(cls);
zoneinfo_state *state = (zoneinfo_state *)_PyType_GetModuleState(cls);
assert(state != NULL);
return state;
}