sympy/sympy — pull request #8041 by skirpichev (2014-09-15 18:30:53+00:00)
Title: Fix #8008 (v2)

Another attempt to do a minimal fix for #8008.

@pbrady
@smichr