more consistent 4space indent

This commit is contained in:
wiredfool 2013-11-25 16:25:06 -08:00
parent d030b4f48a
commit c6cfd02f8f

View File

@ -2374,8 +2374,7 @@ _draw_bitmap(ImagingDrawObject* self, PyObject* args)
if (n < 0) if (n < 0)
return NULL; return NULL;
if (n != 1) { if (n != 1) {
PyErr_SetString( PyErr_SetString(PyExc_TypeError,
PyExc_TypeError,
"coordinate list must contain exactly 1 coordinate" "coordinate list must contain exactly 1 coordinate"
); );
return NULL; return NULL;
@ -2429,15 +2428,15 @@ _draw_ellipse(ImagingDrawObject* self, PyObject* args)
if (n < 0) if (n < 0)
return NULL; return NULL;
if (n != 2) { if (n != 2) {
PyErr_SetString( PyErr_SetString(PyExc_TypeError,
PyExc_TypeError,
"coordinate list must contain exactly 2 coordinates" "coordinate list must contain exactly 2 coordinates"
); );
return NULL; return NULL;
} }
n = ImagingDrawEllipse( n = ImagingDrawEllipse(self->image->image,
self->image->image, (int) xy[0], (int) xy[1], (int) xy[2], (int) xy[3], (int) xy[0], (int) xy[1],
(int) xy[2], (int) xy[3],
&ink, fill, self->blend &ink, fill, self->blend
); );
@ -2631,8 +2630,7 @@ _draw_polygon(ImagingDrawObject* self, PyObject* args)
if (n < 0) if (n < 0)
return NULL; return NULL;
if (n < 2) { if (n < 2) {
PyErr_SetString( PyErr_SetString(PyExc_TypeError,
PyExc_TypeError,
"coordinate list must contain at least 2 coordinates" "coordinate list must contain at least 2 coordinates"
); );
return NULL; return NULL;
@ -2676,16 +2674,16 @@ _draw_rectangle(ImagingDrawObject* self, PyObject* args)
if (n < 0) if (n < 0)
return NULL; return NULL;
if (n != 2) { if (n != 2) {
PyErr_SetString( PyErr_SetString(PyExc_TypeError,
PyExc_TypeError,
"coordinate list must contain exactly 2 coordinates" "coordinate list must contain exactly 2 coordinates"
); );
return NULL; return NULL;
} }
n = ImagingDrawRectangle( n = ImagingDrawRectangle(self->image->image,
self->image->image, (int) xy[0], (int) xy[1], (int) xy[0], (int) xy[1],
(int) xy[2], (int) xy[3], &ink, fill, self->blend (int) xy[2], (int) xy[3],
&ink, fill, self->blend
); );
free(xy); free(xy);