aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-11 23:49:34 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-11 23:49:34 +0200
commit6f3378c098a481588f5ec5813060376351e5a576 (patch)
treea7bf4b65730b284a2fa45e820dd645c3105afadb /setuptools/package_index.py
parentc8fafe39c39a6814741b3f2825320c565c02058c (diff)
downloadexternal_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-xsetuptools/package_index.py2
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
)