MAINT: spatial.distance: generate boilerplate with macros
BUG: spatial.distance: fix unchecked malloc
MAINT: spatial.distance: further refactoring

* static on all functions in distance_impl.h
* commented out unused compute_mean_vector
* replaced &&, || with &, | in tight loops
* reindented code according to NumPy conventions
* removed some useless variables
DOC: remove docstring from UnivariateSpline.__init__

same for InterpolatedUnivariateSpline and LSQUnivariateSpline.
These simply duplicated the class docstrings.
DOC: improve the docstrings of *UnivariateSpline classes

Tweak examples to make plots actually render.
DOC: add a nan masking example to the UnivariateSpline docstring

example is by @juliantaylor,
https://github.com/scipy/scipy/issues/3531#issuecomment-40233093
ENH: using python's warnings instead of prints in fitpack.

When fitpack detects a recoverable problem, it will signal it with
a RuntimeWarning instead of printing to stdout. This way the output
can be programatically silenced or made exceptions.
MAINT: remove some inf-related warnings from logsumexp
MAINT: mis-parenthesization
DOC: stats: fix whitespace in docstrings of several distributions

[ci skip]
Merge pull request #4020 from ev-br/loglaplace

DOC: stats: fix whitespace in docstrings of several distributions
PEP8: putting back print_function for uniformity
DOC: indicating the deprecation of the parameter quiet
Merge pull request #4003 from Dapid/warnings

ENH: using python's warnings instead of prints in fitpack.
Exactly one space required before assignments
Merge pull request #4016 from argriffing/logsumexp-warnings

MAINT: remove some inf-related warnings from logsumexp
In dendrogram(): Correct an argument name and a grammar issue.
Merge pull request #4024 from cbrueffer/misc

In dendrogram(): Correct an argument name and a grammar issue in the docstring.
Merge pull request #4023 from lizzardius/master

MAINT: Exactly one space required before assignments in setup.py
BUG: misc: Ensure that the 'size' argument of PIL's 'resize' method is a tuple.

In Pillow 2.5.3, the code for the 'resize' function has a statement of the
form 'if self.size == size: ...'.  The expectation is that 'self.size' and
'size' are tuples.  If 'size' is a numpy array, the comparison raises
'ValueError: The truth value of an array with more than one element is
ambiguous.'

This commit ensures that the 'size' argument passed to the 'resize' method
is a tuple.

Closes gh-4032.