From 196b810d37aa5259d5757f4a64c323d83ab8adb1 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 21 Apr 2016 18:18:34 +1000 Subject: [PATCH] Removed support for Python 3.0 --- _imaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_imaging.c b/_imaging.c index 12ed32168..1077f0b57 100644 --- a/_imaging.c +++ b/_imaging.c @@ -3142,7 +3142,7 @@ _getattr_id(ImagingObject* self, void* closure) static PyObject* _getattr_ptr(ImagingObject* self, void* closure) { -#if (PY_VERSION_HEX >= 0x02070000 && PY_VERSION_HEX < 0x03000000) || PY_VERSION_HEX >= 0x03010000 +#if PY_VERSION_HEX >= 0x02070000 return PyCapsule_New(self->image, IMAGING_MAGIC, NULL); #else return PyCObject_FromVoidPtrAndDesc(self->image, IMAGING_MAGIC, NULL);