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/f2py/auxfuncs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/f2py') 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) -- cgit v1.2.1