From 00cb14afd77c37c7ccf99b813f6d8212d6398186 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 3 Sep 2016 12:19:04 +1000 Subject: [PATCH] Removed trailing whitespace --- _imaging.c | 8 ++++---- docs/handbook/image-file-formats.rst | 2 +- docs/installation.rst | 4 ++-- libImaging/Geometry.c | 2 +- libImaging/Resample.c | 30 ++++++++++++++-------------- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/_imaging.c b/_imaging.c index 71c77eec7..72572a4ea 100644 --- a/_imaging.c +++ b/_imaging.c @@ -364,17 +364,17 @@ getbands(const char* mode) static void* getlist(PyObject* arg, Py_ssize_t* length, const char* wrong_length, int type) { - /* - allocates and returns a c array of the items in the + /* - allocates and returns a c array of the items in the python sequence arg. - the size of the returned array is in length - - all of the arg items must be numeric items of the type + - all of the arg items must be numeric items of the type specified in type - sequence length is checked against the length parameter IF an error parameter is passed in wrong_length - - caller is responsible for freeing the memory + - caller is responsible for freeing the memory */ - Py_ssize_t i, n; + Py_ssize_t i, n; int itemp; double dtemp; void* list; diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index aedcdacd7..991681631 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -16,7 +16,7 @@ explicitly. Fully supported formats ----------------------- -.. contents:: +.. contents:: BMP ^^^ diff --git a/docs/installation.rst b/docs/installation.rst index 996cef517..321bc5563 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -282,7 +282,7 @@ Building on Linux ^^^^^^^^^^^^^^^^^ If you didn't build Python from source, make sure you have Python's -development libraries installed. +development libraries installed. In Debian or Ubuntu:: @@ -298,7 +298,7 @@ In Fedora, the command is:: Or for Python 3:: - $ sudo dnf install python3-devel redhat-rpm-config + $ sudo dnf install python3-devel redhat-rpm-config .. Note:: ``redhat-rpm-config`` is required on Fedora 23, but not earlier versions. diff --git a/libImaging/Geometry.c b/libImaging/Geometry.c index d9750cb10..f775e3323 100644 --- a/libImaging/Geometry.c +++ b/libImaging/Geometry.c @@ -780,7 +780,7 @@ affine_fixed(Imaging imOut, Imaging imIn, /* use 16.16 fixed point arithmetics */ #define FIX(v) FLOOR((v)*65536.0 + 0.5) - a0 = FIX(a[0]); a1 = FIX(a[1]); + a0 = FIX(a[0]); a1 = FIX(a[1]); a3 = FIX(a[3]); a4 = FIX(a[4]); a2 = FIX(a[2] + a[0] * 0.5 + a[1] * 0.5); a5 = FIX(a[5] + a[3] * 0.5 + a[4] * 0.5); diff --git a/libImaging/Resample.c b/libImaging/Resample.c index 9f03e40da..5f202bc3f 100644 --- a/libImaging/Resample.c +++ b/libImaging/Resample.c @@ -81,13 +81,13 @@ static struct filter LANCZOS = { lanczos_filter, 3.0 }; UINT8 _lookups[512] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, @@ -105,13 +105,13 @@ UINT8 _lookups[512] = { 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 }; @@ -249,7 +249,7 @@ ImagingResampleHorizontal_8bpc(Imaging imIn, int xsize, struct filter *filterp) } kmax = normalize_coeffs_8bpc(xsize, kmax, prekk, &kk); - free(prekk); + free(prekk); if ( ! kmax) { free(xbounds); return (Imaging) ImagingError_MemoryError(); @@ -354,7 +354,7 @@ ImagingResampleVertical_8bpc(Imaging imIn, int ysize, struct filter *filterp) } kmax = normalize_coeffs_8bpc(ysize, kmax, prekk, &kk); - free(prekk); + free(prekk); if ( ! kmax) { free(xbounds); return (Imaging) ImagingError_MemoryError();