Drop support for Python 3.0 to 3.3

See #701.
This commit is contained in:
Olly Betts 2018-05-18 17:07:18 +12:00
commit a82c1b943b
5 changed files with 8 additions and 20 deletions

View file

@ -13,12 +13,9 @@ SWIGINTERN Py_hash_t
SWIG_PyNumber_AsPyHash(PyObject *obj) {
Py_hash_t result = -1;
#if PY_VERSION_HEX < 0x03020000
#if PY_VERSION_HEX < 0x03000000
if (PyInt_Check(obj))
result = PyInt_AsLong(obj);
else
#endif
if (PyLong_Check(obj))
else if (PyLong_Check(obj))
result = PyLong_AsLong(obj);
#else
if (PyNumber_Check(obj))