diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:20:10 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:20:10 +0000 |
commit | 11b80e7bd14501f33e6e0d9704afca8b10dce695 (patch) | |
tree | 9df9d7e9a44c7e6711feed9101363f380643a820 /numpy/oldnumeric/ma.py | |
parent | 9f9098f6f77f82eddb2471991d08ec0a37ead6f9 (diff) | |
download | numpy-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/oldnumeric/ma.py')
-rw-r--r-- | numpy/oldnumeric/ma.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/oldnumeric/ma.py b/numpy/oldnumeric/ma.py index 532e4f905..1284c6019 100644 --- a/numpy/oldnumeric/ma.py +++ b/numpy/oldnumeric/ma.py @@ -18,6 +18,9 @@ from numpy.core.numerictypes import bool_, typecodes import numpy.core.numeric as numeric import warnings +if sys.version_info[0] >= 3: + from functools import reduce + # Ufunc domain lookup for __array_wrap__ ufunc_domain = {} # Ufunc fills lookup for __array__ |