Skip to content

Commit 4119720

Browse files
committed
Resolve the located directory and remove suppression of Exceptions. Ref python/cpython#103661.
1 parent 11b9ddf commit 4119720

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

importlib_metadata/__init__.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,12 @@ def _read_files_egginfo_installed(self):
536536
subdir = getattr(self, '_path', None)
537537
if not text or not subdir:
538538
return
539-
with contextlib.suppress(Exception):
540-
ret = [
541-
str((subdir / line).resolve().relative_to(self.locate_file('')))
542-
for line in text.splitlines()
543-
]
544-
return map('"{}"'.format, ret)
539+
540+
ret = [
541+
str((subdir / line).resolve().relative_to(self.locate_file('').resolve()))
542+
for line in text.splitlines()
543+
]
544+
return map('"{}"'.format, ret)
545545

546546
def _read_files_egginfo_sources(self):
547547
"""

0 commit comments

Comments
 (0)