Skip to content

Commit

Permalink
Do not parse JSON content with HTML parser
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha authored and sbidoul committed Aug 2, 2022
1 parent 4514d1f commit 96675e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pip/_internal/index/collector.py
Expand Up @@ -345,6 +345,7 @@ def parse_links(page: "IndexContent") -> Iterable[Link]:
yanked_reason=yanked_reason,
hashes=file.get("hashes", {}),
)
return

parser = HTMLLinkParser(page.url)
encoding = page.encoding or "utf-8"
Expand Down

0 comments on commit 96675e9

Please sign in to comment.