File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1212import functools
1313import itertools
1414import posixpath
15+ import contextlib
1516import collections
1617import inspect
1718
@@ -513,16 +514,14 @@ def _read_files_egginfo_installed(self):
513514 # But this subdir is only available in the PathDistribution's self._path
514515 # which is not easily accessible from this base class...
515516 subdir = getattr (self , '_path' , None )
516- try :
517- if text and subdir :
518- ret = [
519- str ((subdir / line ).resolve ().relative_to (self .locate_file ('' )))
520- for line in text .splitlines ()
521- ]
522- return map ('"{}"' .format , ret )
523- except Exception :
524- pass
525- return None
517+ if not text or not subdir :
518+ return
519+ with contextlib .suppress (Exception ):
520+ ret = [
521+ str ((subdir / line ).resolve ().relative_to (self .locate_file ('' )))
522+ for line in text .splitlines ()
523+ ]
524+ return map ('"{}"' .format , ret )
526525
527526 def _read_files_egginfo_sources (self ):
528527 """
You can’t perform that action at this time.
0 commit comments