Skip to content

Commit

Permalink
Resolve the located directory and remove suppression of Exceptions. Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 22, 2023
1 parent 11b9ddf commit 4119720
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions importlib_metadata/__init__.py
Expand Up @@ -536,12 +536,12 @@ def _read_files_egginfo_installed(self):
subdir = getattr(self, '_path', None)
if not text or not subdir:
return
with contextlib.suppress(Exception):
ret = [
str((subdir / line).resolve().relative_to(self.locate_file('')))
for line in text.splitlines()
]
return map('"{}"'.format, ret)

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

def _read_files_egginfo_sources(self):
"""
Expand Down

0 comments on commit 4119720

Please sign in to comment.