Show More
@@ -2276,7 +2276,12 static int index_slice_del(indexObject * | |||||
2276 | Py_ssize_t length = index_length(self); |
|
2276 | Py_ssize_t length = index_length(self); | |
2277 | int ret = 0; |
|
2277 | int ret = 0; | |
2278 |
|
2278 | |||
|
2279 | /* Argument changed from PySliceObject* to PyObject* in Python 3. */ | |||
|
2280 | #ifdef IS_PY3K | |||
|
2281 | if (PySlice_GetIndicesEx(item, length, | |||
|
2282 | #else | |||
2279 | if (PySlice_GetIndicesEx((PySliceObject*)item, length, |
|
2283 | if (PySlice_GetIndicesEx((PySliceObject*)item, length, | |
|
2284 | #endif | |||
2280 | &start, &stop, &step, &slicelength) < 0) |
|
2285 | &start, &stop, &step, &slicelength) < 0) | |
2281 | return -1; |
|
2286 | return -1; | |
2282 |
|
2287 |
General Comments 0
You need to be logged in to leave comments.
Login now