scipy/scipy — pull request #2553 by WarrenWeckesser (2013-06-10 12:54:25+00:00)
Title: MAINT: stats:  Use special.xlogy to compute entropy of discrete distributions

This simplifies the code, and avoids spurious RuntimeWarnings that can occur
when a probability is 0.