From 77e09f14bdf9eeebbd20ca861cb51da3e570bb72 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 6 Apr 2013 10:02:23 -0600 Subject: 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. --- numpy/ma/timer_comparison.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'numpy/ma/timer_comparison.py') diff --git a/numpy/ma/timer_comparison.py b/numpy/ma/timer_comparison.py index 549448689..3662d5b03 100644 --- a/numpy/ma/timer_comparison.py +++ b/numpy/ma/timer_comparison.py @@ -1,8 +1,8 @@ from __future__ import division, absolute_import import timeit +from functools import reduce -import sys import numpy as np from numpy import float_ import np.core.fromnumeric as fromnumeric @@ -13,8 +13,6 @@ np.seterr(all='ignore') pi = np.pi -if sys.version_info[0] >= 3: - from functools import reduce class moduletester(object): def __init__(self, module): -- cgit v1.2.1