aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-09-06 09:33:13 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-09-06 09:33:13 -0400
commit705e6255fca83f5ff2b194e6529968017cefaaa3 (patch)
tree802f0e7c51f517581a969bfa0d686825e6028c67 /setuptools/package_index.py
parent95bf90f3dae23f3d672450d94adfbcc55f9e252a (diff)
downloadexternal_python_setuptools-705e6255fca83f5ff2b194e6529968017cefaaa3.tar.gz
external_python_setuptools-705e6255fca83f5ff2b194e6529968017cefaaa3.tar.bz2
external_python_setuptools-705e6255fca83f5ff2b194e6529968017cefaaa3.zip
Correct 404 errors when URLs contain fragments. Fixes #69.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 4c4a647d..a09048b4 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -657,7 +657,7 @@ class PackageIndex(Environment):
fp, tfp, info = None, None, None
try:
checker = HashChecker.from_url(url)
- fp = self.open_url(url)
+ fp = self.open_url(strip_fragment(url))
if isinstance(fp, HTTPError):
raise DistutilsError(
"Can't download %s: %s %s" % (url, fp.code,fp.msg)