@@ -328,8 +328,10 @@ class DistributionFinder(MetaPathFinder):
328328 @abc .abstractmethod
329329 def find_distributions (self , name = None , path = None ):
330330 """
331+ Find distributions.
332+
331333 Return an iterable of all Distribution instances capable of
332- loading the metadata for packages matching the name
334+ loading the metadata for packages matching the `` name``
333335 (or all names if not supplied) along the paths in the list
334336 of directories ``path`` (defaults to sys.path).
335337 """
@@ -345,8 +347,11 @@ class MetadataPathFinder(NullFinder, DistributionFinder):
345347 search_template = r'(?:{pattern}(-.*)?\.(dist|egg)-info|EGG-INFO)'
346348
347349 def find_distributions (self , name = None , path = None ):
348- """Return an iterable of all Distribution instances capable of
349- loading the metadata for packages matching the name
350+ """
351+ Find distributions.
352+
353+ Return an iterable of all Distribution instances capable of
354+ loading the metadata for packages matching the ``name``
350355 (or all names if not supplied) along the paths in the list
351356 of directories ``path`` (defaults to sys.path).
352357 """
@@ -358,9 +363,7 @@ def find_distributions(self, name=None, path=None):
358363
359364 @classmethod
360365 def _search_paths (cls , pattern , paths ):
361- """
362- Find metadata directories in paths heuristically.
363- """
366+ """Find metadata directories in paths heuristically."""
364367 return itertools .chain .from_iterable (
365368 cls ._search_path (path , pattern )
366369 for path in map (cls ._switch_path , paths )
0 commit comments