1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Remove unused project_name argument from LinkCollector._get_pages().

This commit is contained in:
Chris Jerdonek 2019-09-13 23:47:58 -07:00
parent 43806b4333
commit 1a42641762
2 changed files with 4 additions and 4 deletions

View file

@ -363,8 +363,8 @@ class LinkCollector(object):
# type: () -> List[str]
return self.search_scope.find_links
def _get_pages(self, locations, project_name):
# type: (Iterable[Link], str) -> Iterable[HTMLPage]
def _get_pages(self, locations):
# type: (Iterable[Link]) -> Iterable[HTMLPage]
"""
Yields (page, page_url) from the given locations, skipping
locations that have errors.
@ -419,7 +419,7 @@ class LinkCollector(object):
logger.debug('* %s', location)
pages_links = {}
for page in self._get_pages(url_locations, project_name):
for page in self._get_pages(url_locations):
pages_links[page.url] = list(page.iter_links())
return CollectedLinks(

View file

@ -37,7 +37,7 @@ def make_no_network_finder(
)
# Replace the PackageFinder._link_collector's _get_pages() with a no-op.
link_collector = finder._link_collector
link_collector._get_pages = lambda locations, project_name: []
link_collector._get_pages = lambda locations: []
return finder