mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Rename a variable to be more in line with the name of the module.
This commit is contained in:
parent
cf49e2053a
commit
429ef650b7
@ -1191,7 +1191,7 @@ static PyMethodDef marshal_methods[] = {
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
static struct PyModuleDef impmodule = {
|
||||
static struct PyModuleDef marshalmodule = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"marshal",
|
||||
NULL,
|
||||
@ -1208,7 +1208,7 @@ static struct PyModuleDef impmodule = {
|
||||
PyMODINIT_FUNC
|
||||
PyMarshal_Init(void)
|
||||
{
|
||||
PyObject *mod = PyModule_Create(&impmodule);
|
||||
PyObject *mod = PyModule_Create(&marshalmodule);
|
||||
if (mod == NULL)
|
||||
return NULL;
|
||||
PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION);
|
||||
|
Loading…
Reference in New Issue
Block a user