sympy/sympy — pull request #1204 by smichr (2012-04-04 17:53:18+00:00)
Title: 3207: _mask_nc looks for nc objects that have no nc symbols

The intention of _mask_nc is to replace objects that are non-commutative
for reasons other than containing nc-symbols. Conditions to ensure that
this is so have been added.