sympy/sympy — pull request #1298 by JDougherty (2012-05-15 07:21:14+00:00)
Title: 2339: strip_whitespace now fixes surplus EOF newlines.

This partially addresses [Issue 2339](http://code.google.com/p/sympy/issues/detail?id=2339) and adds functionality to strip_whitespace to identify and remove superfluous newlines at the end of the file. All tests and doctests pass.