diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-01-16 14:50:30 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-01-16 14:50:30 -0500 |
commit | 552ea0d4a08ad24e06c2aa5b1746e669be1c48f5 (patch) | |
tree | cda11984aa78c4e1ce161bdc3991827899891deb /setuptools/package_index.py | |
parent | b9ca305f48b5da7cfe0f831fdc32dc0aa3890035 (diff) | |
download | external_python_setuptools-552ea0d4a08ad24e06c2aa5b1746e669be1c48f5.tar.gz external_python_setuptools-552ea0d4a08ad24e06c2aa5b1746e669be1c48f5.tar.bz2 external_python_setuptools-552ea0d4a08ad24e06c2aa5b1746e669be1c48f5.zip |
Restore setuptools import, falsely identified as an unused import by linter.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 5c25c9d6..45fac01a 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -17,6 +17,7 @@ except ImportError: from setuptools.extern import six from setuptools.extern.six.moves import urllib, http_client, configparser, map +import setuptools from pkg_resources import ( CHECKOUT_DIST, Distribution, BINARY_DIST, normalize_path, SOURCE_DIST, Environment, find_distributions, safe_name, safe_version, @@ -47,7 +48,7 @@ __all__ = [ _SOCKET_TIMEOUT = 15 _tmpl = "setuptools/{setuptools.__version__} Python-urllib/{py_major}" -user_agent = _tmpl.format(py_major=sys.version[:3], **globals()) +user_agent = _tmpl.format(py_major=sys.version[:3], setuptools=setuptools) def parse_requirement_arg(spec): |