##// END OF EJS Templates
cext: unconditionalize PySlice_GetIndicesEx()...
Gregory Szorc -
r49675:acf9f778 default
parent child Browse files
Show More
@@ -2825,14 +2825,8 b' static int index_slice_del(indexObject *'
2825 Py_ssize_t length = index_length(self) + 1;
2825 Py_ssize_t length = index_length(self) + 1;
2826 int ret = 0;
2826 int ret = 0;
2827
2827
2828 /* Argument changed from PySliceObject* to PyObject* in Python 3. */
2829 #ifdef IS_PY3K
2830 if (PySlice_GetIndicesEx(item, length, &start, &stop, &step,
2828 if (PySlice_GetIndicesEx(item, length, &start, &stop, &step,
2831 &slicelength) < 0)
2829 &slicelength) < 0)
2832 #else
2833 if (PySlice_GetIndicesEx((PySliceObject *)item, length, &start, &stop,
2834 &step, &slicelength) < 0)
2835 #endif
2836 return -1;
2830 return -1;
2837
2831
2838 if (slicelength <= 0)
2832 if (slicelength <= 0)
General Comments 0
You need to be logged in to leave comments. Login now