diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/paxmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c index 4ba32df..1355f86 100644 --- a/scripts/paxmodule.c +++ b/scripts/paxmodule.c @@ -101,7 +101,11 @@ initpax(void) #endif if (m == NULL) +#if PY_MAJOR_VERSION >= 3 + return NULL; +#else return; +#endif PaxError = PyErr_NewException("pax.PaxError", NULL, NULL); Py_INCREF(PaxError); |