diff options
author | Dirley Rodrigues <dirleyrls@gmail.com> | 2013-02-04 11:54:53 -0200 |
---|---|---|
committer | Dirley Rodrigues <dirleyrls@gmail.com> | 2013-02-04 11:54:53 -0200 |
commit | d7ba7ce3c4ce2427d78cb2393bd062aa3a8496b4 (patch) | |
tree | 63c4817648a9e683ec2b74ac3eee2e340b34276f /setuptools/package_index.py | |
parent | 116420fe62842f18f2d37de46c2177028231755a (diff) | |
download | external_python_setuptools-d7ba7ce3c4ce2427d78cb2393bd062aa3a8496b4.tar.gz external_python_setuptools-d7ba7ce3c4ce2427d78cb2393bd062aa3a8496b4.tar.bz2 external_python_setuptools-d7ba7ce3c4ce2427d78cb2393bd062aa3a8496b4.zip |
actually filter the links
--HG--
branch : distribute
extra : rebase_source : cb6e3497e1f8594181f10110cbc833bd6c81f89e
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 984feef4..8974a647 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -148,6 +148,7 @@ def find_external_links(url, page): for match in HREF.finditer(tag): link = urlparse.urljoin(url, htmldecode(match.group(1))) if not link in seen_links: + seen_links.add(link) yield link for tag in ("<th>Home Page", "<th>Download URL"): @@ -157,6 +158,7 @@ def find_external_links(url, page): if match: link = urlparse.urljoin(url, htmldecode(match.group(1))) if not link in seen_links: + seen_links.add(link) yield link |