mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Removed unused argument
This commit is contained in:
parent
748a4d0fcd
commit
aeb6e9909e
|
@ -1254,7 +1254,7 @@ class Image:
|
||||||
if ymargin is None:
|
if ymargin is None:
|
||||||
ymargin = xmargin
|
ymargin = xmargin
|
||||||
self.load()
|
self.load()
|
||||||
return self._new(self.im.expand(xmargin, ymargin, 0))
|
return self._new(self.im.expand(xmargin, ymargin))
|
||||||
|
|
||||||
def filter(self, filter):
|
def filter(self, filter):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1027,12 +1027,11 @@ _crop(ImagingObject *self, PyObject *args) {
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_expand_image(ImagingObject *self, PyObject *args) {
|
_expand_image(ImagingObject *self, PyObject *args) {
|
||||||
int x, y;
|
int x, y;
|
||||||
int mode = 0;
|
if (!PyArg_ParseTuple(args, "ii", &x, &y)) {
|
||||||
if (!PyArg_ParseTuple(args, "ii|i", &x, &y, &mode)) {
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return PyImagingNew(ImagingExpand(self->image, x, y, mode));
|
return PyImagingNew(ImagingExpand(self->image, x, y));
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
|
@ -49,7 +49,7 @@ clip32(float in) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Imaging
|
Imaging
|
||||||
ImagingExpand(Imaging imIn, int xmargin, int ymargin, int mode) {
|
ImagingExpand(Imaging imIn, int xmargin, int ymargin) {
|
||||||
Imaging imOut;
|
Imaging imOut;
|
||||||
int x, y;
|
int x, y;
|
||||||
ImagingSectionCookie cookie;
|
ImagingSectionCookie cookie;
|
||||||
|
|
|
@ -290,7 +290,7 @@ ImagingConvertTransparent(Imaging im, const char *mode, int r, int g, int b);
|
||||||
extern Imaging
|
extern Imaging
|
||||||
ImagingCrop(Imaging im, int x0, int y0, int x1, int y1);
|
ImagingCrop(Imaging im, int x0, int y0, int x1, int y1);
|
||||||
extern Imaging
|
extern Imaging
|
||||||
ImagingExpand(Imaging im, int x, int y, int mode);
|
ImagingExpand(Imaging im, int x, int y);
|
||||||
extern Imaging
|
extern Imaging
|
||||||
ImagingFill(Imaging im, const void *ink);
|
ImagingFill(Imaging im, const void *ink);
|
||||||
extern int
|
extern int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user