Skip to content

Commit d09c845

Browse files
committed
Rename find_linked to find_legacy_editables
1 parent 4d28139 commit d09c845

File tree

1 file changed

+2
-2
lines changed
  • src/pip/_internal/metadata/importlib

1 file changed

+2
-2
lines changed

src/pip/_internal/metadata/importlib/_envs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def find(self, location: str) -> Iterator[BaseDistribution]:
8585
installed_location = info_location.parent
8686
yield Distribution(dist, info_location, installed_location)
8787

88-
def find_linked(self, location: str) -> Iterator[BaseDistribution]:
88+
def find_legacy_editables(self, location: str) -> Iterator[BaseDistribution]:
8989
"""Read location in egg-link files and return distributions in there.
9090
9191
The path should be a directory; otherwise this returns nothing. This
@@ -128,7 +128,7 @@ def _iter_distributions(self) -> Iterator[BaseDistribution]:
128128
finder = _DistributionFinder()
129129
for location in self._paths:
130130
yield from finder.find(location)
131-
yield from finder.find_linked(location)
131+
yield from finder.find_legacy_editables(location)
132132

133133
def get_distribution(self, name: str) -> Optional[BaseDistribution]:
134134
canonical_name = canonicalize_name(name)

0 commit comments

Comments
 (0)