Skip to content

Commit

Permalink
Reword to prefer imperative voice and more a more concise description.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 22, 2023
1 parent 56b0cf7 commit ffc289f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,18 +521,17 @@ def _read_files_egginfo_installed(self):
"""
Read installed-files.txt and return lines in a similar
CSV-parsable format as RECORD: each file must be placed
relative to the site-packages directory, and must also be
relative to the site-packages directory and must also be
quoted (since file names can contain literal commas).
This file is written when the package is installed by pip,
but it might not be written for other installation methods.
Hence, even if we can assume that this file is accurate
when it exists, we cannot assume that it always exists.
Assume the file is accurate if it exists.
"""
text = self.read_text('installed-files.txt')
# We need to prepend the .egg-info/ subdir to the lines in this file.
# But this subdir is only available in the PathDistribution's self._path
# which is not easily accessible from this base class...
# Prepend the .egg-info/ subdir to the lines in this file.
# But this subdir is only available from PathDistribution's
# self._path.
subdir = getattr(self, '_path', None)
if not text or not subdir:
return
Expand Down

0 comments on commit ffc289f

Please sign in to comment.