sympy/sympy — pull request #661 by smichr (2011-10-16 01:34:46+00:00)
Title: upgrade code quality old-style raise detection

>>> s
' raise (ValueError, "homogeneous_order: no symbols were given.")'
>>> o=re.compile(r'^\s*(>>> )?(\.\.\. )?raise((\s*\(\s*)|\s+)\w+\s*,')
>>> o.match(s)
<_sre.SRE_Match object at 0x0236D1D8>