py3 compat

This commit is contained in:
Michael Davidsaver
2013-12-10 22:26:23 -05:00
parent 17436ceffb
commit 8a575f183e
4 changed files with 13 additions and 5 deletions

View File

@@ -211,7 +211,11 @@ static struct PyModuleDef inotifymodule = {
# define MODINIT_RET(VAL) return
#endif
#if PY_MAJOR_VERSION >= 3
PyMODINIT_FUNC PyInit__inotifyy(void)
#else
PyMODINIT_FUNC init_inotifyy(void)
#endif
{
PyObject *mod = NULL;