Trim trailing whitespace from all source files throughout project

Many editors trim whitespace by default. When newcomers are submitting
patches, it is often undesirable to see inadvertent whitespace changes
in the diff as it is distracting and unrelated. To make contributing
easier, clean up all whitespace in one go across the project. Will allow
for cleaner diffs in the future. Contributors will not need to worry
about automatic yet inadvertent whitespace changes.
This commit is contained in:
Jon Dufresne 2017-12-16 09:51:40 -08:00
parent 92bb1b5f06
commit 45f5e8e092
65 changed files with 91 additions and 138 deletions

1
.gitignore vendored
View File

@ -68,4 +68,3 @@ docs/_build/
#OS
.DS_Store

View File

@ -32,4 +32,3 @@ pushd depends && ./install_imagequant.sh && popd
# extra test images
pushd depends && ./install_extra_test_images.sh && popd

View File

@ -1,4 +1,3 @@
Changelog (Pillow)
==================

View File

@ -1,4 +1,3 @@
include *.c
include *.h
include *.in

View File

@ -76,4 +76,3 @@ def get_supported():
ret.extend(get_supported_features())
ret.extend(get_supported_codecs())
return ret

View File

@ -39,6 +39,3 @@ To run an individual test::
Run all the tests from the root of the Pillow source distribution::
./test-installed.py

View File

@ -22,4 +22,3 @@ and that the name of ICC shall not be used in advertising or publicity
pertaining to distribution of the software without specific, written
prior permission. ICC makes no representations about the suitability
of this software for any purpose.

View File

@ -3718,4 +3718,3 @@ init_imaging(void)
setup_module(m);
}
#endif

View File

@ -891,4 +891,3 @@ init_imagingft(void)
setup_module(m);
}
#endif

View File

@ -301,4 +301,3 @@ init_imagingmath(void)
setup_module(m);
}
#endif

View File

@ -301,4 +301,3 @@ init_imagingmorph(void)
setup_module(m);
}
#endif

View File

@ -86,4 +86,3 @@ init_imagingtk(void)
load_tkinter_funcs();
}
#endif

View File

@ -942,4 +942,3 @@ PyImaging_Jpeg2KDecoderNew(PyObject* self, PyObject* args)
return (PyObject*) decoder;
}
#endif /* HAVE_OPENJPEG */

View File

@ -24,4 +24,3 @@ e.g.::
$ source ~/vpy27/bin/activate
$ make install
$ make test

View File

@ -11,4 +11,3 @@ pushd $archive
./configure --prefix=/usr && make -j4 && sudo make -j4 install
popd

View File

@ -15,4 +15,3 @@ make && sudo make install
cd ..
popd

View File

@ -2,4 +2,3 @@
pkg -y install python python-dev ndk-sysroot clang make \
libjpeg-turbo-dev

View File

@ -150,4 +150,3 @@ can be found here.
:members:
:undoc-members:
:show-inheritance:

View File

@ -413,5 +413,3 @@ Python-based file decoder:
called with a buffer of data to be interpreted.
3. Cleanup: The decoder instance's ``cleanup`` method is called.

View File

@ -7,4 +7,3 @@ Internal Reference Docs
open_files
limits
block_allocator

View File

@ -122,4 +122,3 @@ Proposed File Handling
* Users of the library should call ``Image.Image.close()`` on any
multi-frame image to ensure that the underlying file is closed.

View File

@ -1,4 +1,3 @@
3.0.0
=====
@ -49,4 +48,3 @@ The external dependencies on libjpeg and zlib are now required by default.
If the headers or libraries are not found, then installation will abort
with an error. This behaviour can be disabled with the ``--disable-libjpeg``
and ``--disable-zlib`` flags.

View File

@ -1,4 +1,3 @@
3.1.0
=====

View File

@ -1,4 +1,3 @@
3.1.1
=====

View File

@ -1,4 +1,3 @@
3.1.2
=====

View File

@ -1,4 +1,3 @@
3.2.0
-----

View File

@ -1,4 +1,3 @@
3.3.2
=====
@ -34,7 +33,3 @@ image size can lead to a smaller allocation than expected, leading to
arbitrary writes.
This issue was found by Cris Neckar at Divergent Security.

View File

@ -1,4 +1,3 @@
3.4.0
-----

View File

@ -20,5 +20,3 @@ CPython 3.6.1 to not work on installations of C-Python 3.6.0. This fix
undefines PySlice_GetIndicesEx if it exists to restore compatibility
with both 3.6.0 and 3.6.1. See https://bugs.python.org/issue29943 for
more details.

View File

@ -8,4 +8,3 @@ Fixed Windows PyPy Build
A change in the 4.2.0 cycle broke the Windows PyPy build. This has
been fixed, and PyPy is now part of the Windows CI matrix.

View File

@ -80,4 +80,3 @@ ImagingSavePPM(Imaging im, const char* outfile)
return 1;
}

View File

@ -344,4 +344,3 @@ ImagingFilter(Imaging im, int xsize, int ysize, const FLOAT32* kernel,
ImagingSectionLeave(&cookie);
return imOut;
}

View File

@ -312,4 +312,3 @@ int ImagingJpegDecodeCleanup(ImagingCodecState state){
}
#endif

View File

@ -39,4 +39,3 @@ ImagingNegative(Imaging im)
return imOut;
}

View File

@ -188,4 +188,3 @@ ImagingPcxEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
}
}
}

1
map.c
View File

@ -385,4 +385,3 @@ PyImaging_MapBuffer(PyObject* self, PyObject* args)
return PyImagingNew(im);
}

1
path.c
View File

@ -625,4 +625,3 @@ static PyTypeObject PyPathType = {
0, /*tp_members*/
getsetters, /*tp_getset*/
};

View File

@ -91,4 +91,3 @@ Testing Pillow
Build and install Pillow, then run `python test.py` from the
`winbuild` directory.