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 028c046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changes/unreleased/Removed-20240208-014432.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Removed
body: Removed the `Session._headers` attribute
time: 2024-02-08T01:44:32.587864-06:00
custom:
Issue: "1093"
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 028c046

Please sign in to comment.