diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-09-11 23:49:34 +0200 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-09-11 23:49:34 +0200 |
commit | 6f3378c098a481588f5ec5813060376351e5a576 (patch) | |
tree | a7bf4b65730b284a2fa45e820dd645c3105afadb /setuptools/package_index.py | |
parent | c8fafe39c39a6814741b3f2825320c565c02058c (diff) | |
download | external_python_setuptools-6f3378c098a481588f5ec5813060376351e5a576.tar.gz external_python_setuptools-6f3378c098a481588f5ec5813060376351e5a576.tar.bz2 external_python_setuptools-6f3378c098a481588f5ec5813060376351e5a576.zip |
Shortcut User-agent computation, as 2to3 won't
update urllib2.__version__ correctly.
--HG--
branch : distribute
extra : rebase_source : 9035aa6fb13225181f7ce22429efa91c771247a6
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 220cdec7..48494aff 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -143,7 +143,7 @@ def find_external_links(url, page): yield urlparse.urljoin(url, htmldecode(match.group(1))) user_agent = "Python-urllib/%s distribute/%s" % ( - urllib2.__version__, require('distribute')[0].version + sys.version[:3], require('distribute')[0].version ) |