Commits

Anonymous committed 174f629

fixed import and user-agent

Comments (0)

Files changed (2)

distribute.installer/distribute/installer/package_index.py

     urllib_version = urllib2.__version__
 else:
     urllib_version = urllib.request.__version__
-user_agent = "Python-urllib/%s distribute/%s" % (
-    urllib_version, require('distribute')[0].version
+user_agent = "Python-urllib/%s distribute.installer/%s" % (
+    urllib_version, require('distribute.installer')[0].version
 )
 
 

distribute.installer/distribute/installer/tests/test_packageindex.py

 # More would be better!
 
 import os, shutil, tempfile, unittest, urllib2
-import distribute.installer import package_index
+from distribute.installer import package_index
 
 class TestPackageIndex(unittest.TestCase):