From 276fdbc78db9557af8e7ef644cb6b824936d741f Mon Sep 17 00:00:00 2001 From: homm Date: Wed, 30 Nov 2016 19:56:55 +0300 Subject: [PATCH] Revert "remove deprecated since Pillow 2.7 Image.im.stretch() method" This reverts commit e7569a1ee9d7a67964f1d6d984530f83e9f56778. --- _imaging.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_imaging.c b/_imaging.c index 4da764d01..40159c6a2 100644 --- a/_imaging.c +++ b/_imaging.c @@ -2996,6 +2996,9 @@ static struct PyMethodDef methods[] = { {"rankfilter", (PyCFunction)_rankfilter, 1}, #endif {"resize", (PyCFunction)_resize, 1}, + // There were two methods for image resize before. + // Starting from Pillow 2.7.0 stretch is depreciated. + {"stretch", (PyCFunction)_resize, 1}, {"transpose", (PyCFunction)_transpose, 1}, {"transform2", (PyCFunction)_transform2, 1},