mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Rename HTMLPage.links to clarify its purpose
This commit is contained in:
parent
aa83222bf0
commit
47ba191d3a
1 changed files with 2 additions and 3 deletions
|
@ -415,7 +415,7 @@ class PackageFinder(object):
|
||||||
logger.debug('Analyzing links from page %s', page.url)
|
logger.debug('Analyzing links from page %s', page.url)
|
||||||
with indent_log():
|
with indent_log():
|
||||||
page_versions.extend(
|
page_versions.extend(
|
||||||
self._package_versions(page.links, search)
|
self._package_versions(page.iter_links(), search)
|
||||||
)
|
)
|
||||||
|
|
||||||
dependency_versions = self._package_versions(
|
dependency_versions = self._package_versions(
|
||||||
|
@ -865,8 +865,7 @@ class HTMLPage(object):
|
||||||
|
|
||||||
return resp.headers.get("Content-Type", "")
|
return resp.headers.get("Content-Type", "")
|
||||||
|
|
||||||
@property
|
def iter_links(self):
|
||||||
def links(self):
|
|
||||||
"""Yields all links in the page"""
|
"""Yields all links in the page"""
|
||||||
document = html5lib.parse(
|
document = html5lib.parse(
|
||||||
self.content,
|
self.content,
|
||||||
|
|
Loading…
Reference in a new issue