Author: troycurtisjr
Date: Fri Dec 22 03:40:08 2017
New Revision: 1818994
URL: http://svn.apache.org/viewvc?rev=1818994&view=rev
Log:
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.
Modified:
subversion/branches/swig-py3/subversion/bindings/swig/core.i
Modified: subversion/branches/swig-py3/subversion/bindings/swig/core.i
URL:
http://svn.apache.org/viewvc/subversion/branches/swig-py3/subversion/bindings/swig/core.i?rev=1818994&r1=1818993&r2=1818994&view=diff
==============================================================================
--- subversion/branches/swig-py3/subversion/bindings/swig/core.i (original)
+++ subversion/branches/swig-py3/subversion/bindings/swig/core.i Fri Dec 22
03:40:08 2017
@@ -387,6 +387,7 @@
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.
@@ -395,6 +396,7 @@
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");