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 | dfd0658e8ef3bc9b92cb40578e4be16a481ec3de (patch) | |
| tree | c1a7c8ba3e58e8f2073a8e0fcb71ae1e5aebe6ae /setuptools/package_index.py | |
| parent | 4b96967ffc8c3fe183348145c01c77a57d7fd100 (diff) | |
| download | python-setuptools-bitbucket-dfd0658e8ef3bc9b92cb40578e4be16a481ec3de.tar.gz | |
Shortcut User-agent computation, as 2to3 won't
update urllib2.__version__ correctly.
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 ) |
