Commit 429ef650 authored by Brett Cannon's avatar Brett Cannon

Rename a variable to be more in line with the name of the module.

parent cf49e205
...@@ -1191,7 +1191,7 @@ static PyMethodDef marshal_methods[] = { ...@@ -1191,7 +1191,7 @@ static PyMethodDef marshal_methods[] = {
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
}; };
static struct PyModuleDef impmodule = { static struct PyModuleDef marshalmodule = {
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
"marshal", "marshal",
NULL, NULL,
...@@ -1208,7 +1208,7 @@ static struct PyModuleDef impmodule = { ...@@ -1208,7 +1208,7 @@ static struct PyModuleDef impmodule = {
PyMODINIT_FUNC PyMODINIT_FUNC
PyMarshal_Init(void) PyMarshal_Init(void)
{ {
PyObject *mod = PyModule_Create(&impmodule); PyObject *mod = PyModule_Create(&marshalmodule);
if (mod == NULL) if (mod == NULL)
return NULL; return NULL;
PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION); PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment