Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de0f89d

Browse files
committed
Apply changes from importlib_metadata refresh.
1 parent 1b52d5b commit de0f89d

2 files changed

Lines changed: 590 additions & 587 deletions

File tree

Lib/importlib/_bootstrap_external.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,8 +1363,11 @@ def find_module(cls, fullname, path=None):
13631363

13641364
@classmethod
13651365
def find_distributions(cls, name=None, path=None):
1366-
"""Return an iterable of all Distribution instances capable of
1367-
loading the metadata for packages matching the name
1366+
"""
1367+
Find distributions.
1368+
1369+
Return an iterable of all Distribution instances capable of
1370+
loading the metadata for packages matching the ``name``
13681371
(or all names if not supplied) along the paths in the list
13691372
of directories ``path`` (defaults to sys.path).
13701373
"""
@@ -1378,9 +1381,7 @@ def find_distributions(cls, name=None, path=None):
13781381

13791382
@classmethod
13801383
def _search_paths(cls, pattern, paths):
1381-
"""
1382-
Find metadata directories in paths heuristically.
1383-
"""
1384+
"""Find metadata directories in paths heuristically."""
13841385
import itertools
13851386
return itertools.chain.from_iterable(
13861387
cls._search_path(path, pattern)

0 commit comments

Comments
 (0)