On branch swig-py3: Disable invalid PyInt_Check() in Python 3.
* subversion/bindings/swig/core.i
(%typemap(in) (char *buffer, apr_size_t *len)):
Remove PyInt_Check() when building against Python 3, since it has
been removed.
if (PyLong_Check($input)) {
temp = PyLong_AsUnsignedLong($input);
}
+%#if IS_PY3 != 1
else if (PyInt_Check($input)) {
/* wish there was a PyInt_AsUnsignedLong but there isn't
the mask version doesn't do bounds checking for us.
problem goes away because PyInt is gone anyway. */
temp = PyInt_AsUnsignedLongMask($input);
}
+%#endif
else {
PyErr_SetString(PyExc_TypeError,
"expecting an integer for the buffer size");
