diff --git a/docs/extensions/resourcelinks.py b/docs/extensions/resourcelinks.py index d37af4c..c36fd6f 100644 --- a/docs/extensions/resourcelinks.py +++ b/docs/extensions/resourcelinks.py @@ -23,7 +23,6 @@ def make_link_role(resource_links: Dict[str, str]) -> RoleFunction: options: Dict = {}, content: List[str] = [], ) -> Tuple[List[Node], List[system_message]]: - text = utils.unescape(text) has_explicit_title, title, key = split_explicit_title(text) full_url = resource_links[key] diff --git a/github/internals/http.py b/github/internals/http.py index cd69bb5..afe8d97 100644 --- a/github/internals/http.py +++ b/github/internals/http.py @@ -18,6 +18,7 @@ try: import orjson except ImportError: import json + json_loads = json.loads else: json_loads = orjson.loads @@ -188,7 +189,6 @@ class HTTPClient: async with self.__session.request( method, f"https://api.github.com{path}", **kwargs ) as response: - headers = response.headers self._rates = RateLimits( @@ -202,7 +202,7 @@ class HTTPClient: ) if 200 <= response.status <= 299: - data = await response.text(encoding='utf-8') + data = await response.text(encoding="utf-8") if response.headers["Content-Type"] == "application/json": return json_loads(data)