mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #2000 from wiredfool/pr_1961
Removed trailing whitespace
This commit is contained in:
commit
54998fc7e8
|
@ -106,7 +106,7 @@ Changelog (Pillow)
|
||||||
- Removed docs/BUILDME script #1924
|
- Removed docs/BUILDME script #1924
|
||||||
[radarhere]
|
[radarhere]
|
||||||
|
|
||||||
- Moved comments to docstrings #1926
|
- Moved comments to docstrings #1926
|
||||||
[hugovk]
|
[hugovk]
|
||||||
|
|
||||||
- Include Python.h before wchar.h so _GNU_SOURCE is set consistently #1906
|
- Include Python.h before wchar.h so _GNU_SOURCE is set consistently #1906
|
||||||
|
@ -128,7 +128,7 @@ Changelog (Pillow)
|
||||||
[wiredfool]
|
[wiredfool]
|
||||||
|
|
||||||
- Skip test when icc profile is not available, fixes #1887
|
- Skip test when icc profile is not available, fixes #1887
|
||||||
[doko42]
|
[doko42]
|
||||||
|
|
||||||
- Make deprecated functions raise NotImplementedError instead of Exception. #1862, #1890
|
- Make deprecated functions raise NotImplementedError instead of Exception. #1862, #1890
|
||||||
[daniel-leicht, radarhere]
|
[daniel-leicht, radarhere]
|
||||||
|
@ -344,7 +344,7 @@ Changelog (Pillow)
|
||||||
3.1.1 (2016-02-04)
|
3.1.1 (2016-02-04)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
- Fixed an integer overflow in Resample.c causing writes in the Python heap.
|
- Fixed an integer overflow in Resample.c causing writes in the Python heap.
|
||||||
[nedwill]
|
[nedwill]
|
||||||
|
|
||||||
- Fixed a buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files. CVE-2016-2533
|
- Fixed a buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files. CVE-2016-2533
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -14,7 +14,7 @@ co:
|
||||||
git checkout -t $$i ; \
|
git checkout -t $$i ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
coverage erase
|
coverage erase
|
||||||
coverage run --parallel-mode --include=PIL/* selftest.py
|
coverage run --parallel-mode --include=PIL/* selftest.py
|
||||||
nosetests --with-cov --cov='PIL/' --cov-report=html Tests/test_*.py
|
nosetests --with-cov --cov='PIL/' --cov-report=html Tests/test_*.py
|
||||||
|
@ -28,8 +28,8 @@ doc:
|
||||||
|
|
||||||
doccheck:
|
doccheck:
|
||||||
$(MAKE) -C docs html
|
$(MAKE) -C docs html
|
||||||
# Don't make our test rely on the links in the docs being up every single build.
|
# Don't make our test rely on the links in the docs being up every single build.
|
||||||
# We don't control them. But do check, and update them to the target of their redirectes.
|
# We don't control them. But do check, and update them to the target of their redirectes.
|
||||||
$(MAKE) -C docs linkcheck || true
|
$(MAKE) -C docs linkcheck || true
|
||||||
|
|
||||||
docserve:
|
docserve:
|
||||||
|
@ -42,13 +42,13 @@ help:
|
||||||
@echo " doc make html docs"
|
@echo " doc make html docs"
|
||||||
@echo " docserve run an http server on the docs directory"
|
@echo " docserve run an http server on the docs directory"
|
||||||
@echo " html to make standalone HTML files"
|
@echo " html to make standalone HTML files"
|
||||||
@echo " inplace make inplace extension"
|
@echo " inplace make inplace extension"
|
||||||
@echo " install make and install"
|
@echo " install make and install"
|
||||||
@echo " install-req install documentation and test dependencies"
|
@echo " install-req install documentation and test dependencies"
|
||||||
@echo " install-venv install in virtualenv"
|
@echo " install-venv install in virtualenv"
|
||||||
@echo " release-test run code and package tests before release"
|
@echo " release-test run code and package tests before release"
|
||||||
@echo " test run tests on installed pillow"
|
@echo " test run tests on installed pillow"
|
||||||
@echo " upload build and upload sdists to PyPI"
|
@echo " upload build and upload sdists to PyPI"
|
||||||
@echo " upload-test build and upload sdists to test.pythonpackages.com"
|
@echo " upload-test build and upload sdists to test.pythonpackages.com"
|
||||||
|
|
||||||
inplace: clean
|
inplace: clean
|
||||||
|
@ -61,7 +61,7 @@ install:
|
||||||
install-req:
|
install-req:
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
install-venv:
|
install-venv:
|
||||||
virtualenv .
|
virtualenv .
|
||||||
bin/pip install -r requirements.txt
|
bin/pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,6 @@ e.g.::
|
||||||
$ git checkout [branch or tag]
|
$ git checkout [branch or tag]
|
||||||
$ virtualenv -p /usr/bin/python2.7 ~/vpy27
|
$ virtualenv -p /usr/bin/python2.7 ~/vpy27
|
||||||
$ source ~/vpy27/bin/activate
|
$ source ~/vpy27/bin/activate
|
||||||
$ make install
|
$ make install
|
||||||
$ make test
|
$ make test
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
# with all/most of the dependencies working.
|
# with all/most of the dependencies working.
|
||||||
#
|
#
|
||||||
# Tcl/Tk isn't detecting
|
# Tcl/Tk isn't detecting
|
||||||
# Freetype has different metrics so tests are failing.
|
# Freetype has different metrics so tests are failing.
|
||||||
# sudo and bash are required for the webp build script.
|
# sudo and bash are required for the webp build script.
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
USER root
|
USER root
|
||||||
|
@ -28,7 +28,7 @@ RUN apk --no-cache add python \
|
||||||
# install from git, run tests, including webp
|
# install from git, run tests, including webp
|
||||||
RUN apk --no-cache add git \
|
RUN apk --no-cache add git \
|
||||||
bash \
|
bash \
|
||||||
sudo
|
sudo
|
||||||
|
|
||||||
RUN git clone https://github.com/python-pillow/Pillow.git /Pillow
|
RUN git clone https://github.com/python-pillow/Pillow.git /Pillow
|
||||||
RUN pip install virtualenv && virtualenv /vpy && source /vpy/bin/activate && pip install nose
|
RUN pip install virtualenv && virtualenv /vpy && source /vpy/bin/activate && pip install nose
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
# note that Fedora does ship packages for Pillow as python-pillow
|
# note that Fedora does ship packages for Pillow as python-pillow
|
||||||
|
|
||||||
# this is a workaround for
|
# this is a workaround for
|
||||||
# "gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory"
|
# "gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory"
|
||||||
# errors when compiling.
|
# errors when compiling.
|
||||||
sudo dnf install redhat-rpm-config
|
sudo dnf install redhat-rpm-config
|
||||||
|
@ -14,5 +14,5 @@ sudo dnf install redhat-rpm-config
|
||||||
sudo dnf install python-devel python3-devel python-virtualenv make gcc
|
sudo dnf install python-devel python3-devel python-virtualenv make gcc
|
||||||
|
|
||||||
sudo dnf install libtiff-devel libjpeg-devel zlib-devel freetype-devel \
|
sudo dnf install libtiff-devel libjpeg-devel zlib-devel freetype-devel \
|
||||||
lcms2-devel libwebp-devel openjpeg2-devel tkinter python3-tkinter \
|
lcms2-devel libwebp-devel openjpeg2-devel tkinter python3-tkinter \
|
||||||
tcl-devel tk-devel
|
tcl-devel tk-devel
|
|
@ -29,7 +29,7 @@ metadata tag numbers, names, and type information.
|
||||||
.. method:: cvt_enum(self, value)
|
.. method:: cvt_enum(self, value)
|
||||||
|
|
||||||
:param value: The enumerated value name
|
:param value: The enumerated value name
|
||||||
:returns: The integer corresponding to the name.
|
:returns: The integer corresponding to the name.
|
||||||
|
|
||||||
.. versionadded:: 3.0.0
|
.. versionadded:: 3.0.0
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ la2lA(UINT8* out, const UINT8* in, int xsize)
|
||||||
pixel = in[0];
|
pixel = in[0];
|
||||||
} else {
|
} else {
|
||||||
pixel = CLIP((255 * in[0]) / alpha);
|
pixel = CLIP((255 * in[0]) / alpha);
|
||||||
}
|
}
|
||||||
*out++ = (UINT8) pixel;
|
*out++ = (UINT8) pixel;
|
||||||
*out++ = (UINT8) pixel;
|
*out++ = (UINT8) pixel;
|
||||||
*out++ = (UINT8) pixel;
|
*out++ = (UINT8) pixel;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PIL_NO_INLINE)
|
#if defined(PIL_NO_INLINE)
|
||||||
#define inline
|
#define inline
|
||||||
#else
|
#else
|
||||||
#if defined(_MSC_VER) && !defined(__GNUC__)
|
#if defined(_MSC_VER) && !defined(__GNUC__)
|
||||||
#define inline __inline
|
#define inline __inline
|
||||||
|
|
|
@ -490,8 +490,8 @@ struct ImagingCodecStateInstance {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Codec read/write python fd */
|
|
||||||
|
|
||||||
|
/* Codec read/write python fd */
|
||||||
extern Py_ssize_t _imaging_read_pyFd(PyObject *fd, char* dest, Py_ssize_t bytes);
|
extern Py_ssize_t _imaging_read_pyFd(PyObject *fd, char* dest, Py_ssize_t bytes);
|
||||||
extern Py_ssize_t _imaging_write_pyFd(PyObject *fd, char* src, Py_ssize_t bytes);
|
extern Py_ssize_t _imaging_write_pyFd(PyObject *fd, char* src, Py_ssize_t bytes);
|
||||||
extern int _imaging_seek_pyFd(PyObject *fd, Py_ssize_t offset, int whence);
|
extern int _imaging_seek_pyFd(PyObject *fd, Py_ssize_t offset, int whence);
|
||||||
|
|
|
@ -362,7 +362,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state)
|
||||||
state->errcode = IMAGING_CODEC_BROKEN;
|
state->errcode = IMAGING_CODEC_BROKEN;
|
||||||
state->state = J2K_STATE_FAILED;
|
state->state = J2K_STATE_FAILED;
|
||||||
goto quick_exit;
|
goto quick_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup compression context */
|
/* Setup compression context */
|
||||||
context->error_msg = NULL;
|
context->error_msg = NULL;
|
||||||
|
|
|
@ -391,7 +391,7 @@ ImagingResampleHorizontal_32bpc(Imaging imIn, int xsize, struct filter *filterp)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImagingSectionEnter(&cookie);
|
ImagingSectionEnter(&cookie);
|
||||||
switch(imIn->type) {
|
switch(imIn->type) {
|
||||||
case IMAGING_TYPE_INT32:
|
case IMAGING_TYPE_INT32:
|
||||||
for (yy = 0; yy < imOut->ysize; yy++) {
|
for (yy = 0; yy < imOut->ysize; yy++) {
|
||||||
|
@ -451,7 +451,7 @@ ImagingResampleVertical_32bpc(Imaging imIn, int ysize, struct filter *filterp)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImagingSectionEnter(&cookie);
|
ImagingSectionEnter(&cookie);
|
||||||
switch(imIn->type) {
|
switch(imIn->type) {
|
||||||
case IMAGING_TYPE_INT32:
|
case IMAGING_TYPE_INT32:
|
||||||
for (yy = 0; yy < ysize; yy++) {
|
for (yy = 0; yy < ysize; yy++) {
|
||||||
|
|
|
@ -34,7 +34,7 @@ typedef struct {
|
||||||
int fp;
|
int fp;
|
||||||
uint32 ifd; /* offset of the ifd, used for multipage
|
uint32 ifd; /* offset of the ifd, used for multipage
|
||||||
* Should be uint32 for libtiff 3.9.x
|
* Should be uint32 for libtiff 3.9.x
|
||||||
* uint64 for libtiff 4.0.x
|
* uint64 for libtiff 4.0.x
|
||||||
*/
|
*/
|
||||||
TIFF *tiff; /* Used in write */
|
TIFF *tiff; /* Used in write */
|
||||||
toff_t eof;
|
toff_t eof;
|
||||||
|
@ -48,7 +48,7 @@ extern int ImagingLibTiffEncodeInit(ImagingCodecState state, char *filename, int
|
||||||
extern int ImagingLibTiffSetField(ImagingCodecState state, ttag_t tag, ...);
|
extern int ImagingLibTiffSetField(ImagingCodecState state, ttag_t tag, ...);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Trace debugging
|
Trace debugging
|
||||||
legacy, don't enable for Python 3.x, unicode issues.
|
legacy, don't enable for Python 3.x, unicode issues.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -75,7 +75,7 @@ def build_one(py_ver, compiler):
|
||||||
else:
|
else:
|
||||||
args['python_path'] = "%s%s\\Scripts" % (VIRT_BASE, py_ver)
|
args['python_path'] = "%s%s\\Scripts" % (VIRT_BASE, py_ver)
|
||||||
args['py_ver'] = py_ver
|
args['py_ver'] = py_ver
|
||||||
if '34' in py_ver:
|
if '34' in py_ver:
|
||||||
args['tcl_ver'] = '86'
|
args['tcl_ver'] = '86'
|
||||||
else:
|
else:
|
||||||
args['tcl_ver'] = '85'
|
args['tcl_ver'] = '85'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user