Skip to content

Commit fc65396

Browse files
authored
Merge pull request #11337 from gotcha/patch-1
Do not parse JSON content with HTML parser
2 parents 82c23d9 + 9c22ee1 commit fc65396

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pip/_internal/index/collector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ def parse_links(page: "IndexContent") -> Iterable[Link]:
345345
yanked_reason=yanked_reason,
346346
hashes=file.get("hashes", {}),
347347
)
348+
return
348349

349350
parser = HTMLLinkParser(page.url)
350351
encoding = page.encoding or "utf-8"

0 commit comments

Comments
 (0)