diff --git a/importlib_metadata/__init__.py b/importlib_metadata/__init__.py index 410e7a76..609b246e 100644 --- a/importlib_metadata/__init__.py +++ b/importlib_metadata/__init__.py @@ -538,11 +538,11 @@ def _read_files_egginfo_installed(self): return ret = [ - (subdir / line) + (subdir / name) .resolve() .relative_to(self.locate_file('').resolve()) .as_posix() - for line in text.splitlines() + for name in text.splitlines() ] return map('"{}"'.format, ret)