changeset 30171 | 7a3b59f0329a |
parent 30169 | 5f7151e6de85 |
child 30577 | 6146d5acee69 |
--- a/mercurial/parsers.c Thu Oct 13 13:27:14 2016 +0200 +++ b/mercurial/parsers.c Thu Oct 13 13:34:53 2016 +0200 @@ -2276,7 +2276,12 @@ Py_ssize_t length = index_length(self); int ret = 0; +/* Argument changed from PySliceObject* to PyObject* in Python 3. */ +#ifdef IS_PY3K + if (PySlice_GetIndicesEx(item, length, +#else if (PySlice_GetIndicesEx((PySliceObject*)item, length, +#endif &start, &stop, &step, &slicelength) < 0) return -1;