Skip to content

Commit

Permalink
Remove deprecated Session._headers attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Feb 8, 2024
1 parent 2f7e94d commit 49b00b6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/citric/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ class Session:

USER_AGENT = f"citric/{metadata.version('citric')}"

# TODO(edgarrmondragon): Remove this.
# https://github.com/edgarrmondragon/citric/issues/893
_headers: t.ClassVar[dict[str, t.Any]] = {}

def __init__(
self,
url: str,
Expand All @@ -112,7 +108,6 @@ def __init__(
self.url = url
self._session = requests_session or requests.session()
self._session.headers["User-Agent"] = self.USER_AGENT
self._session.headers.update(self._headers)
self._encoder = json_encoder or json.JSONEncoder

self.__key: str | None = self.get_session_key(
Expand Down

0 comments on commit 49b00b6

Please sign in to comment.