Skip to content

Commit

Permalink
CLN : Remove an PY_MAJOR_VERSION conditional in quartz backend (#810)
Browse files Browse the repository at this point in the history
modified:   kiva/quartz/mac_context.c
  • Loading branch information
Poruri Sai Rahul committed May 3, 2021
1 parent f2a8327 commit 5d130a1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions kiva/quartz/mac_context.c
Expand Up @@ -41,8 +41,6 @@ static PyMethodDef mac_context_methods[] = {
{NULL, NULL}
};

#if PY_MAJOR_VERSION >= 3

static struct PyModuleDef mac_context_module = {
PyModuleDef_HEAD_INIT,
"mac_context", /* m_name */
Expand All @@ -60,12 +58,3 @@ PyInit_mac_context(void)
{
return PyModule_Create(&mac_context_module);
}

#else

void initmac_context(void)
{
Py_InitModule("mac_context", mac_context_methods);
}

#endif

0 comments on commit 5d130a1

Please sign in to comment.