Skip to content

Commit

Permalink
Renamed transform2 to transform
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 8, 2024
1 parent 5bacce9 commit 985e605
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 985e605

Please sign in to comment.