Skip to content

Commit

Permalink
commands.show: fix small typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Aug 16, 2021
1 parent 4adc1b3 commit 08b62b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/commands/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _PackageInfo(NamedTuple):
files: Optional[List[str]]


def _covert_legacy_entry(entry: Tuple[str, ...], info: Tuple[str, ...]) -> str:
def _convert_legacy_entry(entry: Tuple[str, ...], info: Tuple[str, ...]) -> str:
"""Convert a legacy installed-files.txt path into modern RECORD path.
The legacy format stores paths relative to the info directory, while the
Expand Down Expand Up @@ -146,7 +146,7 @@ def _files_from_legacy(dist: BaseDistribution) -> Optional[Iterator[str]]:
if not info_rel.parts: # info *is* root.
return paths
return (
_covert_legacy_entry(pathlib.Path(p).parts, info_rel.parts) for p in paths
_convert_legacy_entry(pathlib.Path(p).parts, info_rel.parts) for p in paths
)

for query_name in query_names:
Expand Down

0 comments on commit 08b62b6

Please sign in to comment.