Skip to content

Commit

Permalink
Use generator expression for paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 22, 2023
1 parent ffc289f commit 512a3df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,14 @@ def _read_files_egginfo_installed(self):
if not text or not subdir:
return

ret = [
paths = (
(subdir / name)
.resolve()
.relative_to(self.locate_file('').resolve())
.as_posix()
for name in text.splitlines()
]
return map('"{}"'.format, ret)
)
return map('"{}"'.format, paths)

def _read_files_egginfo_sources(self):
"""
Expand Down

0 comments on commit 512a3df

Please sign in to comment.