diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-24 16:19:00 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-24 16:19:00 -0500 |
commit | 6474847292f1cf4fcda55afe2cd5e46497ce339f (patch) | |
tree | 5d79f5ad3caf40413c2639ef24d65352a830e015 /setuptools/command | |
parent | 6448b98096c81ee02505edaf38430912426665b1 (diff) | |
download | external_python_setuptools-6474847292f1cf4fcda55afe2cd5e46497ce339f.tar.gz external_python_setuptools-6474847292f1cf4fcda55afe2cd5e46497ce339f.tar.bz2 external_python_setuptools-6474847292f1cf4fcda55afe2cd5e46497ce339f.zip |
The one use of xrange could also use range, so just use range.
Diffstat (limited to 'setuptools/command')
-rwxr-xr-x | setuptools/command/easy_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index d329f4cb..fd133b6c 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -56,7 +56,7 @@ from setuptools.archive_util import unpack_archive from setuptools.package_index import PackageIndex from setuptools.package_index import URL_SCHEME from setuptools.command import bdist_egg, egg_info -from setuptools.compat import (iteritems, maxsize, xrange, basestring, unicode, +from setuptools.compat import (iteritems, maxsize, basestring, unicode, reraise) from pkg_resources import ( yield_lines, normalize_path, resource_string, ensure_directory, @@ -376,7 +376,7 @@ class easy_install(Command): outputs = self.outputs if self.root: # strip any package prefix root_len = len(self.root) - for counter in xrange(len(outputs)): + for counter in range(len(outputs)): outputs[counter] = outputs[counter][root_len:] from distutils import file_util self.execute( |