diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-06 09:33:13 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-06 09:33:13 -0400 |
commit | 705e6255fca83f5ff2b194e6529968017cefaaa3 (patch) | |
tree | 802f0e7c51f517581a969bfa0d686825e6028c67 /setuptools/compat.py | |
parent | 95bf90f3dae23f3d672450d94adfbcc55f9e252a (diff) | |
download | external_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/compat.py')
-rw-r--r-- | setuptools/compat.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/compat.py b/setuptools/compat.py index e2f64de2..6094ca74 100644 --- a/setuptools/compat.py +++ b/setuptools/compat.py @@ -26,7 +26,7 @@ if sys.version_info[0] < 3: reduce = reduce unichr = unichr unicode = unicode - from urllib import url2pathname + from urllib import url2pathname, splittag import urllib2 from urllib2 import urlopen, HTTPError, URLError, unquote, splituser from urlparse import urlparse, urlunparse, urljoin @@ -72,7 +72,8 @@ else: from urllib.error import HTTPError, URLError import urllib.request as urllib2 from urllib.request import urlopen, url2pathname - from urllib.parse import urlparse, urlunparse, unquote, splituser, urljoin + from urllib.parse import (urlparse, urlunparse, unquote, splituser, + urljoin, splittag) xrange = range filterfalse = itertools.filterfalse |