Commits

Martin von Löwis  committed 4ceefb5

Shortcut User-agent computation, as 2to3 won't
update urllib2.__version__ correctly.

  • Participants
  • Parent commits d36ad46
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File setuptools/package_index.py

                 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
 )