Revert "remove deprecated since Pillow 2.7 Image.im.stretch() method"

This reverts commit e7569a1ee9.
This commit is contained in:
homm 2016-11-30 19:56:55 +03:00
parent 4079c7f192
commit 276fdbc78d

View File

@ -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},