From 11b80e7bd14501f33e6e0d9704afca8b10dce695 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 20 Feb 2010 18:20:10 +0000 Subject: 3K: BUG: work around bugs in Python 3.1.1 2to3 by not using fixes_reduce Instead, manually import reduce where necessary. --- numpy/oldnumeric/ma.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/oldnumeric/ma.py') 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__ -- cgit v1.2.1