mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-101476: Use _PyType_GetModuleState where applicable (#102188)
This commit is contained in:
parent
81bf10e4f2
commit
568fc0dee4
9 changed files with 19 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue