sympy/sympy — pull request #1788 by jrioux (2013-02-15 21:26:04+00:00)
Title: Pretty printing of Integral(x, x)**2.

Wrap an Integral with brackets when raised to a power. Do the same for most objects, excepts if it is an atom (doesn't need brackets) or a function (which handle printing powers differently already).

Fixes issue 3260.
http://code.google.com/p/sympy/issues/detail?id=3260