Skip to content

Commit d731554

Browse files
committed
Use the internal ABI check in internal modules
1 parent b32c830 commit d731554

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/_abc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ _abcmodule_free(void *module)
976976
}
977977

978978
static PyModuleDef_Slot _abcmodule_slots[] = {
979+
_Py_INTERNAL_ABI_SLOT,
979980
{Py_mod_exec, _abcmodule_exec},
980981
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
981982
{Py_mod_gil, Py_MOD_GIL_NOT_USED},

Modules/_localemodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@ _locale_exec(PyObject *module)
10641064
}
10651065

10661066
static struct PyModuleDef_Slot _locale_slots[] = {
1067+
_Py_INTERNAL_ABI_SLOT, /* XXX */
10671068
{Py_mod_exec, _locale_exec},
10681069
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
10691070
{Py_mod_gil, Py_MOD_GIL_NOT_USED},

Modules/errnomodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ errno_exec(PyObject *module)
952952
}
953953

954954
static PyModuleDef_Slot errno_slots[] = {
955+
_Py_INTERNAL_ABI_SLOT, /* XXX */
955956
{Py_mod_exec, errno_exec},
956957
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
957958
{Py_mod_gil, Py_MOD_GIL_NOT_USED},

0 commit comments

Comments
 (0)