Skip to content

Commit 512a3df

Browse files
committed
Use generator expression for paths.
1 parent ffc289f commit 512a3df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

importlib_metadata/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -536,14 +536,14 @@ def _read_files_egginfo_installed(self):
536536
if not text or not subdir:
537537
return
538538

539-
ret = [
539+
paths = (
540540
(subdir / name)
541541
.resolve()
542542
.relative_to(self.locate_file('').resolve())
543543
.as_posix()
544544
for name in text.splitlines()
545-
]
546-
return map('"{}"'.format, ret)
545+
)
546+
return map('"{}"'.format, paths)
547547

548548
def _read_files_egginfo_sources(self):
549549
"""

0 commit comments

Comments
 (0)