Python: move to version 3.4x on all platforms

This commit is contained in:
2014-04-30 23:13:25 +10:00
parent 417efb0e8b
commit b96d531bc9
14 changed files with 26 additions and 44 deletions

View File

@@ -904,19 +904,3 @@ PyObject *PyC_FlagSet_FromBitfield(PyC_FlagSet *items, int flag)
return ret;
}
/* compat only */
#if PY_VERSION_HEX < 0x03030200
int
_PyLong_AsInt(PyObject *obj)
{
int overflow;
long result = PyLong_AsLongAndOverflow(obj, &overflow);
if (overflow || result > INT_MAX || result < INT_MIN) {
PyErr_SetString(PyExc_OverflowError,
"Python int too large to convert to C int");
return -1;
}
return (int)result;
}
#endif