BoundingBox.volume correctly uses reduce instead of map

This commit is contained in:
unknown 2010-09-06 15:34:27 -10:00
parent 1e3ef64913
commit f0378e11f3

2
box.py
View File

@ -57,7 +57,7 @@ class BoundingBox:
maximum = property(getMaximum, None, None, "The endpoint of the box; origin plus size.")
def getVolume(self): return map(int.__mul__, self.size)
def getVolume(self): return reduce(int.__mul__, self.size)
volume = property(getVolume, None, None, "The volume of the box in blocks")
def __contains__(self, pos):