From 6f3378c098a481588f5ec5813060376351e5a576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 11 Sep 2009 23:49:34 +0200 Subject: Shortcut User-agent computation, as 2to3 won't update urllib2.__version__ correctly. --HG-- branch : distribute extra : rebase_source : 9035aa6fb13225181f7ce22429efa91c771247a6 --- setuptools/package_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/package_index.py') 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 ) -- cgit v1.2.1