aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-25 21:22:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-08-25 21:22:34 -0400
commit4041d1f4667aa4bd7f7373ff7cc626b0d9f5d10c (patch)
tree3ffc46fff773f7dde75d8a0c5daa421ddea517b4 /setuptools/package_index.py
parent2ec8add337856baa2fba48b161ef380d5d007a02 (diff)
downloadexternal_python_setuptools-4041d1f4667aa4bd7f7373ff7cc626b0d9f5d10c.tar.gz
external_python_setuptools-4041d1f4667aa4bd7f7373ff7cc626b0d9f5d10c.tar.bz2
external_python_setuptools-4041d1f4667aa4bd7f7373ff7cc626b0d9f5d10c.zip
Updated error message reported when `--allow-hosts` blocks a link to provide a less startling user experience. Fixes #71.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 9c9d76a1..d949063e 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -343,7 +343,8 @@ class PackageIndex(Environment):
s = URL_SCHEME(url)
if (s and s.group(1).lower()=='file') or self.allows(urlparse(url)[1]):
return True
- msg = "\nLink to % s ***BLOCKED*** by --allow-hosts\n"
+ msg = ("\nNote: Bypassing %s (disallowed host; see "
+ "http://bit.ly/1dg9ijs for details).\n")
if fatal:
raise DistutilsError(msg % url)
else: