aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-06-17 19:23:33 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-06-17 19:23:33 +0100
commit744a61f18bbfcbf7dfaa08886185b4595d8b7bcb (patch)
tree0a46190af97901b276e7881b2e74ee46d5056d94 /setuptools/package_index.py
parentc003c86fc22b8d20b81226d1e74c95a5c885e314 (diff)
downloadexternal_python_setuptools-744a61f18bbfcbf7dfaa08886185b4595d8b7bcb.tar.gz
external_python_setuptools-744a61f18bbfcbf7dfaa08886185b4595d8b7bcb.tar.bz2
external_python_setuptools-744a61f18bbfcbf7dfaa08886185b4595d8b7bcb.zip
Misc. updates following 2to3 checks.
--HG-- branch : single-codebase
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 5ee6fd27..25936b91 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -177,7 +177,7 @@ def find_external_links(url, page):
for match in REL.finditer(page):
tag, rel = match.groups()
- rels = map(str.strip, rel.lower().split(','))
+ rels = set(map(str.strip, rel.lower().split(',')))
if 'homepage' in rels or 'download' in rels:
for match in HREF.finditer(tag):
yield urljoin(url, htmldecode(match.group(1)))
@@ -749,7 +749,7 @@ class PackageIndex(Environment):
scheme, netloc, path, p, q, f = urlparse(url)
if not netloc and path.startswith('//') and '/' in path[2:]:
netloc, path = path[2:].split('/',1)
- auth, host = urllib.splituser(netloc)
+ auth, host = splituser(netloc)
if auth:
if ':' in auth:
user, pw = auth.split(':',1)