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/distutils/system_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'numpy/distutils') diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index ff32daf69..44a5548cb 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -118,6 +118,7 @@ import re import copy import warnings from glob import glob +from functools import reduce if sys.version_info[0] < 3: from ConfigParser import NoOptionError, ConfigParser @@ -137,8 +138,6 @@ from numpy.distutils.misc_util import is_sequence, is_string, \ from numpy.distutils.command.config import config as cmd_config from numpy.distutils.compat import get_exception -if sys.version_info[0] >= 3: - from functools import reduce # Determine number of bits import platform -- cgit v1.2.1