From 3662e34ff1a0a3db5899a64594d740c8bbf8ebb5 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Fri, 12 Apr 2013 15:34:15 -0700 Subject: [PATCH] changed PY_VERSION_HEX, fixes https://github.com/python-imaging/Pillow/issues/166 --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path.c b/path.c index 53139c5df..871da937b 100644 --- a/path.c +++ b/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