mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
changed PY_VERSION_HEX, fixes https://github.com/python-imaging/Pillow/issues/166
This commit is contained in:
parent
b8ee57f10d
commit
3662e34ff1
2
path.c
2
path.c
|
@ -560,7 +560,7 @@ path_subscript(PyPathObject* self, PyObject* item) {
|
|||
int len = 4;
|
||||
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)
|
||||
return NULL;
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue
Block a user