mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Rename a variable to be more in line with the name of the module.
This commit is contained in:
parent
cf49e2053a
commit
429ef650b7
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue