diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 10:02:23 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 10:29:12 -0600 |
commit | 77e09f14bdf9eeebbd20ca861cb51da3e570bb72 (patch) | |
tree | b0c49fa552ccad7d2e9a384db72b79f5a758ba83 /numpy/f2py/auxfuncs.py | |
parent | 7441fa50523f5b4a16c854bf004d675e5bd86ab8 (diff) | |
download | numpy-77e09f14bdf9eeebbd20ca861cb51da3e570bb72.tar.gz |
MAINT: Cleanup some imports involving reduce.
Because reduce has been available in functools since Python 2.6 we
can get rid of the version checks we currently have before we import
it.
Also removes some reduce related skips in tools/py3tool.py. We were
already skipping the reduce fixer so this has no effect other than
cleaning up the code.
Diffstat (limited to 'numpy/f2py/auxfuncs.py')
-rw-r--r-- | numpy/f2py/auxfuncs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/f2py/auxfuncs.py b/numpy/f2py/auxfuncs.py index 5b13747f1..8c19b9611 100644 --- a/numpy/f2py/auxfuncs.py +++ b/numpy/f2py/auxfuncs.py @@ -24,6 +24,7 @@ f2py_version = __version__.version import pprint import sys import types +from functools import reduce from . import cfuncs @@ -35,8 +36,6 @@ options={} debugoptions=[] wrapfuncs = 1 -if sys.version_info[0] >= 3: - from functools import reduce def outmess(t): if options.get('verbose',1): |