Skip to content

Commit da5600f

Browse files
committed
Correct C module name.
1 parent 7c67b2f commit da5600f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lazy_object_proxy/cext.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ PyTypeObject Proxy_Type = {
13321332
#if PY_MAJOR_VERSION >= 3
13331333
static struct PyModuleDef moduledef = {
13341334
PyModuleDef_HEAD_INIT,
1335-
"_proxy", /* m_name */
1335+
"cext", /* m_name */
13361336
NULL, /* m_doc */
13371337
-1, /* m_size */
13381338
NULL, /* m_methods */
@@ -1351,7 +1351,7 @@ moduleinit(void)
13511351
#if PY_MAJOR_VERSION >= 3
13521352
module = PyModule_Create(&moduledef);
13531353
#else
1354-
module = Py_InitModule3("_proxy", NULL, NULL);
1354+
module = Py_InitModule3("cext", NULL, NULL);
13551355
#endif
13561356

13571357
if (module == NULL)
@@ -1370,12 +1370,12 @@ moduleinit(void)
13701370
}
13711371

13721372
#if PY_MAJOR_VERSION < 3
1373-
PyMODINIT_FUNC init_proxy(void)
1373+
PyMODINIT_FUNC initcext(void)
13741374
{
13751375
moduleinit();
13761376
}
13771377
#else
1378-
PyMODINIT_FUNC PyInit__proxy(void)
1378+
PyMODINIT_FUNC PyInit_cext(void)
13791379
{
13801380
return moduleinit();
13811381
}

0 commit comments

Comments
 (0)