0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 00:38:00 +01:00

Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)

This commit is contained in:
Benjamin Peterson 2018-07-06 21:05:51 -07:00 committed by GitHub
parent b0274f2cdd
commit cb4bae72c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ static int execfunc(PyObject *m)
#define TEST_MODULE_DEF(name, slots, methods) TEST_MODULE_DEF_EX(name, slots, methods, 0, NULL)
PyModuleDef_Slot main_slots[] = {
static PyModuleDef_Slot main_slots[] = {
{Py_mod_exec, execfunc},
{0, NULL},
};
@ -486,7 +486,7 @@ createfunc_null(PyObject *spec, PyModuleDef *def)
return NULL;
}
PyModuleDef_Slot slots_create_null[] = {
static PyModuleDef_Slot slots_create_null[] = {
{Py_mod_create, createfunc_null},
{0, NULL},
};