We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2675e85 commit 5305908Copy full SHA for 5305908
setuptools/package_index.py
@@ -422,9 +422,9 @@ def scan_egg_links(self, search_path):
422
list(itertools.starmap(self.scan_egg_link, egg_links))
423
424
def scan_egg_link(self, path, entry):
425
- with open(os.path.join(path, entry)) as raw_lines:
426
- # filter non-empty lines
427
- lines = list(filter(None, map(str.strip, raw_lines)))
+ content = _read_utf8_with_fallback(os.path.join(path, entry))
+ # filter non-empty lines
+ lines = list(filter(None, map(str.strip, content.splitlines())))
428
429
if len(lines) != 2:
430
# format is not recognized; punt
0 commit comments