> Thanks for the comments. I've just a straight-forward copy and paste. My
> thinking was that we could more easily apply patches from scipy if needed, if
> we don't mess with the file. In addition, it helps cross-reference if we find a
> bug later on (we can work out why it was done by referencing scipy's log).

Yes, I agree with this thinking. This is just a backport, and we don't
want to maintain it in the long run.