numpy/numpy — pull request #3440 by WarrenWeckesser (2013-06-15 16:06:35+00:00)
Title: BUG: ma: ma.average didn't handle complex arrays correctly (issue gh-2682)

The problem was the numerator in the calculation of the average was being cast to float. This might have been to ensure that integer arrays were handled correctly, but now that the default behavior is true division, this is not necessary.