mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Support Python 2.5
This commit is contained in:
parent
da44b3ae3b
commit
dc20f793b6
@ -683,11 +683,7 @@ PyObject *make_list_for_item(PyObject *self, const char *num_name,
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
num_elements = PyLong_AsSsize_t(num_result);
|
||||
#else
|
||||
if (PyLong_Check(num_result)) {
|
||||
num_elements = PyLong_AsSsize_t(num_result);
|
||||
} else {
|
||||
num_elements = PyInt_AsSsize_t(num_result);
|
||||
}
|
||||
num_elements = PyInt_AsSsize_t(num_result);
|
||||
#endif
|
||||
Py_DECREF(num_result);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user