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/core/arrayprint.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/arrayprint.py') diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 536b26f40..2367f76e1 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -29,6 +29,8 @@ _line_width = 75 _nan_str = 'NaN' _inf_str = 'Inf' +if sys.version_info[0] >= 3: + from functools import reduce def set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, suppress=None, -- cgit v1.2.1