Skip to content

Commit

Permalink
Trim unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 committed Apr 8, 2024
1 parent 3738d25 commit b8cf8fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/pip/_internal/index/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,11 @@ def parse_links(page: "IndexContent") -> Iterable[Link]:
class IndexContent:
"""Represents one response (or page), along with its URL.
Args:
:param encoding: the encoding to decode the given content.
:param url: the URL from which the HTML was downloaded.
:param cache_link_parsing: whether links parsed from this page's url
should be cached. PyPI index urls should
have this set to False, for example.
:param encoding: the encoding to decode the given content.
:param url: the URL from which the HTML was downloaded.
:param cache_link_parsing: whether links parsed from this page's url
should be cached. PyPI index urls should
have this set to False, for example.
"""

content: bytes
Expand Down
3 changes: 1 addition & 2 deletions src/pip/_internal/locations/_sysconfig.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import dataclasses
import logging
import os
import sys
Expand Down Expand Up @@ -196,7 +195,7 @@ def get_scheme(
converted_keys = {}
for key in SCHEME_KEYS:
converted_keys[key] = change_root(root, getattr(scheme, key))
scheme = dataclasses.replace(scheme, **converted_keys)
scheme = Scheme(**converted_keys)
return scheme


Expand Down

0 comments on commit b8cf8fa

Please sign in to comment.