Skip to content

Commit

Permalink
Merge 5e5bda9 into 1656b47
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredfool committed Jun 30, 2016
2 parents 1656b47 + 5e5bda9 commit 7ccdd6e
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Changelog (Pillow)
- Removed docs/BUILDME script #1924
[radarhere]

- Moved comments to docstrings #1926
- Moved comments to docstrings #1926
[hugovk]

- Include Python.h before wchar.h so _GNU_SOURCE is set consistently #1906
Expand All @@ -128,7 +128,7 @@ Changelog (Pillow)
[wiredfool]

- Skip test when icc profile is not available, fixes #1887
[doko42]
[doko42]

- Make deprecated functions raise NotImplementedError instead of Exception. #1862, #1890
[daniel-leicht, radarhere]
Expand Down Expand Up @@ -344,7 +344,7 @@ Changelog (Pillow)
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]

- Fixed a buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files. CVE-2016-2533
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ co:
git checkout -t $$i ; \
done

coverage:
coverage:
coverage erase
coverage run --parallel-mode --include=PIL/* selftest.py
nosetests --with-cov --cov='PIL/' --cov-report=html Tests/test_*.py
Expand All @@ -28,8 +28,8 @@ doc:

doccheck:
$(MAKE) -C docs html
# 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.
# 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.
$(MAKE) -C docs linkcheck || true

docserve:
Expand All @@ -42,13 +42,13 @@ help:
@echo " doc make html docs"
@echo " docserve run an http server on the docs directory"
@echo " html to make standalone HTML files"
@echo " inplace make inplace extension"
@echo " inplace make inplace extension"
@echo " install make and install"
@echo " install-req install documentation and test dependencies"
@echo " install-venv install in virtualenv"
@echo " release-test run code and package tests before release"
@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"

inplace: clean
Expand All @@ -61,7 +61,7 @@ install:
install-req:
pip install -r requirements.txt

install-venv:
install-venv:
virtualenv .
bin/pip install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion depends/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ e.g.::
$ git checkout [branch or tag]
$ virtualenv -p /usr/bin/python2.7 ~/vpy27
$ source ~/vpy27/bin/activate
$ make install
$ make install
$ make test
6 changes: 3 additions & 3 deletions depends/alpine_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# with all/most of the dependencies working.
#
# Tcl/Tk isn't detecting
# Freetype has different metrics so tests are failing.
# sudo and bash are required for the webp build script.
# Freetype has different metrics so tests are failing.
# sudo and bash are required for the webp build script.

FROM alpine
USER root
Expand All @@ -28,7 +28,7 @@ RUN apk --no-cache add python \
# install from git, run tests, including webp
RUN apk --no-cache add git \
bash \
sudo
sudo

RUN git clone https://github.com/python-pillow/Pillow.git /Pillow
RUN pip install virtualenv && virtualenv /vpy && source /vpy/bin/activate && pip install nose
Expand Down
4 changes: 2 additions & 2 deletions depends/fedora_23.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#
# 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"
# errors when compiling.
sudo dnf install redhat-rpm-config

sudo dnf install python-devel python3-devel python-virtualenv make gcc

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
2 changes: 1 addition & 1 deletion docs/reference/TiffTags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ metadata tag numbers, names, and type information.
.. method:: cvt_enum(self, value)

:param value: The enumerated value name
:returns: The integer corresponding to the name.
:returns: The integer corresponding to the name.

.. versionadded:: 3.0.0

Expand Down
2 changes: 1 addition & 1 deletion libImaging/Convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ la2lA(UINT8* out, const UINT8* in, int xsize)
pixel = in[0];
} else {
pixel = CLIP((255 * in[0]) / alpha);
}
}
*out++ = (UINT8) pixel;
*out++ = (UINT8) pixel;
*out++ = (UINT8) pixel;
Expand Down
2 changes: 1 addition & 1 deletion libImaging/ImPlatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#endif

#if defined(PIL_NO_INLINE)
#define inline
#define inline
#else
#if defined(_MSC_VER) && !defined(__GNUC__)
#define inline __inline
Expand Down
2 changes: 1 addition & 1 deletion libImaging/Imaging.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_write_pyFd(PyObject *fd, char* src, Py_ssize_t bytes);
extern int _imaging_seek_pyFd(PyObject *fd, Py_ssize_t offset, int whence);
Expand Down
2 changes: 1 addition & 1 deletion libImaging/Jpeg2KEncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state)
state->errcode = IMAGING_CODEC_BROKEN;
state->state = J2K_STATE_FAILED;
goto quick_exit;
}
}

/* Setup compression context */
context->error_msg = NULL;
Expand Down
4 changes: 2 additions & 2 deletions libImaging/Resample.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ ImagingResampleHorizontal_32bpc(Imaging imIn, int xsize, struct filter *filterp)
return NULL;
}

ImagingSectionEnter(&cookie);
ImagingSectionEnter(&cookie);
switch(imIn->type) {
case IMAGING_TYPE_INT32:
for (yy = 0; yy < imOut->ysize; yy++) {
Expand Down Expand Up @@ -451,7 +451,7 @@ ImagingResampleVertical_32bpc(Imaging imIn, int ysize, struct filter *filterp)
return NULL;
}

ImagingSectionEnter(&cookie);
ImagingSectionEnter(&cookie);
switch(imIn->type) {
case IMAGING_TYPE_INT32:
for (yy = 0; yy < ysize; yy++) {
Expand Down
4 changes: 2 additions & 2 deletions libImaging/TiffDecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef struct {
int fp;
uint32 ifd; /* offset of the ifd, used for multipage
* 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 */
toff_t eof;
Expand All @@ -48,7 +48,7 @@ extern int ImagingLibTiffEncodeInit(ImagingCodecState state, char *filename, int
extern int ImagingLibTiffSetField(ImagingCodecState state, ttag_t tag, ...);


/*
/*
Trace debugging
legacy, don't enable for Python 3.x, unicode issues.
*/
Expand Down
2 changes: 1 addition & 1 deletion winbuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def build_one(py_ver, compiler):
else:
args['python_path'] = "%s%s\\Scripts" % (VIRT_BASE, py_ver)
args['py_ver'] = py_ver
if '34' in py_ver:
if '34' in py_ver:
args['tcl_ver'] = '86'
else:
args['tcl_ver'] = '85'
Expand Down

0 comments on commit 7ccdd6e

Please sign in to comment.