MAINT: Cleanup some imports involving reduce. #3202

Merged
merged 1 commit into from Apr 7, 2013

Projects

None yet

3 participants

@charris
Member
charris commented Apr 6, 2013

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.

@pv pv commented on an outdated diff Apr 6, 2013
numpy/f2py/auxfuncs.py
@@ -36,7 +37,6 @@
wrapfuncs = 1
if sys.version_info[0] >= 3:
- from functools import reduce
@pv
pv Apr 6, 2013 Member

Problem here.

@charris charris 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.
77e09f1
@njsmith njsmith merged commit ef76d49 into numpy:master Apr 7, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment