@@ -31,7 +31,7 @@ int fileAccess(PyObject *files, const char *file, long flags) {
return 0;
}
//printf("%s:%d\n",file,flags);
- perm = PyInt_AsLong(perm_obj);
+ perm = PyLong_AsLong(perm_obj);
if (perm == flags)
return 1;
@@ -36,7 +36,7 @@ int initCalls(PyObject *li, u_char calls[]) {
#else
if (!PyInt_Check(t) && !PyLong_Check(t))
RAISE1("calls must be a list of numbers.");
- calls[PyInt_AsLong(t)] = 1;
+ calls[PyLong_AsLong(t)] = 1;
#endif