aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index d0896feb..ffbffa99 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -779,6 +779,12 @@ def open_with_auth(url):
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:
@@ -859,4 +865,4 @@ def local_open(url):
-# this line is a kludge to keep the trailing blank lines for pje's editor \ No newline at end of file
+# this line is a kludge to keep the trailing blank lines for pje's editor