From f0378e11f39e4907af90c72816fdb5ff83dc2400 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 6 Sep 2010 15:34:27 -1000 Subject: [PATCH] BoundingBox.volume correctly uses reduce instead of map --- box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box.py b/box.py index 603994e..4f04afd 100644 --- a/box.py +++ b/box.py @@ -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):