Apply changes from importlib_metadata refresh.

This commit is contained in:
Jason R. Coombs 2019-05-18 13:50:07 -04:00
parent 1b52d5b729
commit de0f89dcaf
2 changed files with 591 additions and 588 deletions

View file

@ -1363,8 +1363,11 @@ class PathFinder:
@classmethod
def find_distributions(cls, name=None, path=None):
"""Return an iterable of all Distribution instances capable of
loading the metadata for packages matching the name
"""
Find distributions.
Return an iterable of all Distribution instances capable of
loading the metadata for packages matching the ``name``
(or all names if not supplied) along the paths in the list
of directories ``path`` (defaults to sys.path).
"""
@ -1378,9 +1381,7 @@ class PathFinder:
@classmethod
def _search_paths(cls, pattern, paths):
"""
Find metadata directories in paths heuristically.
"""
"""Find metadata directories in paths heuristically."""
import itertools
return itertools.chain.from_iterable(
cls._search_path(path, pattern)

File diff suppressed because it is too large Load diff