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/core/arrayprint.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/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 2 |
1 files changed, 2 insertions, 0 deletions
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, |