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/f2py/auxfuncs.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/f2py/auxfuncs.py')
-rw-r--r-- | numpy/f2py/auxfuncs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/f2py/auxfuncs.py b/numpy/f2py/auxfuncs.py index fe037f065..3121f710e 100644 --- a/numpy/f2py/auxfuncs.py +++ b/numpy/f2py/auxfuncs.py @@ -32,6 +32,9 @@ options={} debugoptions=[] wrapfuncs = 1 +if sys.version_info[0] >= 3: + from functools import reduce + def outmess(t): if options.get('verbose',1): sys.stdout.write(t) |