Source

distribute / setuptools / package_index.py

The branch 'default' does not exist.
Diff from to

File setuptools/package_index.py

 
     scheme, netloc, path, params, query, frag = urlparse.urlparse(url)
 
+    # Double scheme does not raise on Mac OS X as revealed by a
+    # failing test. We would expect "nonnumeric port". Refs #20.
+    if sys.platform == 'darwin':
+        if netloc.endswith(':'):
+            raise httplib.InvalidURL("nonnumeric port: ''")
+
     if scheme in ('http', 'https'):
         auth, host = urllib2.splituser(netloc)
     else:
 
 
 
-# this line is a kludge to keep the trailing blank lines for pje's editor
+# this line is a kludge to keep the trailing blank lines for pje's editor