소스 검색

Support Python 2.5

rdb 13 년 전
부모
커밋
dc20f793b6
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      dtool/src/interrogatedb/py_panda.cxx

+ 1 - 5
dtool/src/interrogatedb/py_panda.cxx

@@ -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);