Skip to content

Commit

Permalink
Merge pull request #8113 from radarhere/transform
Browse files Browse the repository at this point in the history
Renamed C transform2 to transform
  • Loading branch information
hugovk committed Jun 8, 2024
2 parents 5bacce9 + 985e605 commit 5e0fe8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,7 @@ def __transformer(
if image.mode in ("1", "P"):
resample = Resampling.NEAREST

self.im.transform2(box, image.im, method, data, resample, fill)
self.im.transform(box, image.im, method, data, resample, fill)

def transpose(self, method: Transpose) -> Image:
"""
Expand Down
4 changes: 2 additions & 2 deletions src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ im_setmode(ImagingObject *self, PyObject *args) {
}

static PyObject *
_transform2(ImagingObject *self, PyObject *args) {
_transform(ImagingObject *self, PyObject *args) {
static const char *wrong_number = "wrong number of matrix entries";

Imaging imOut;
Expand Down Expand Up @@ -3647,7 +3647,7 @@ static struct PyMethodDef methods[] = {
{"resize", (PyCFunction)_resize, METH_VARARGS},
{"reduce", (PyCFunction)_reduce, METH_VARARGS},
{"transpose", (PyCFunction)_transpose, METH_VARARGS},
{"transform2", (PyCFunction)_transform2, METH_VARARGS},
{"transform", (PyCFunction)_transform, METH_VARARGS},

{"isblock", (PyCFunction)_isblock, METH_NOARGS},

Expand Down

0 comments on commit 5e0fe8f

Please sign in to comment.