summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-02-20 18:20:10 +0000
committerPauli Virtanen <pav@iki.fi>2010-02-20 18:20:10 +0000
commit11b80e7bd14501f33e6e0d9704afca8b10dce695 (patch)
tree9df9d7e9a44c7e6711feed9101363f380643a820 /numpy/ma/core.py
parent9f9098f6f77f82eddb2471991d08ec0a37ead6f9 (diff)
downloadnumpy-11b80e7bd14501f33e6e0d9704afca8b10dce695.tar.gz
3K: BUG: work around bugs in Python 3.1.1 2to3 by not using fixes_reduce
Instead, manually import reduce where necessary.
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r--numpy/ma/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index cb29d57b1..402916501 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -79,6 +79,9 @@ from numpy.compat import getargspec, formatargspec
from numpy import expand_dims as n_expand_dims
import warnings
+import sys
+if sys.version_info[0] >= 3:
+ from functools import reduce
MaskType = np.bool_
nomask = MaskType(0)