diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-30 17:13:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-30 17:19:16 +0400 |
commit | b96d531bc97ec763e96a5f7a28993d70a0a9e637 (patch) | |
tree | 751620435cf7cb7f71f89cc2c389290c86f502ec /source/blender/python/generic/py_capi_utils.c | |
parent | 417efb0e8bee0a811753dd1b1f97275570307f54 (diff) |
Python: move to version 3.4x on all platforms
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.c')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c index 44b551cefcc..33ff63a9a28 100644 --- a/source/blender/python/generic/py_capi_utils.c +++ b/source/blender/python/generic/py_capi_utils.c @@ -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 |