Commit 6f3378c0 authored by Martin v. Löwis's avatar Martin v. Löwis

Shortcut User-agent computation, as 2to3 won't

update urllib2.__version__ correctly.

--HG--
branch : distribute
extra : rebase_source : 9035aa6fb13225181f7ce22429efa91c771247a6
parent c8fafe39
......@@ -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
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment