This commit is contained in:
wiredfool 2013-04-12 15:34:15 -07:00
parent b8ee57f10d
commit 3662e34ff1

2
path.c
View File

@ -560,7 +560,7 @@ path_subscript(PyPathObject* self, PyObject* item) {
int len = 4; int len = 4;
Py_ssize_t start, stop, step, slicelength; Py_ssize_t start, stop, step, slicelength;
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(item, len, &start, &stop, &step, &slicelength) < 0) if (PySlice_GetIndicesEx(item, len, &start, &stop, &step, &slicelength) < 0)
return NULL; return NULL;
#else #else