Skip to content
Myr

Client.trust_env becomes read-only (#1112)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Florimond Manca · committed by GitHub · parent 71d5234 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:httpx/_client.py+5 added-1 removed
79 unmodified lines
80 self._headers = Headers(headers)81 self._cookies = Cookies(cookies)82 self.timeout = Timeout(timeout)83 self.max_redirects = max_redirects84 self.trust_env = trust_env84 self._trust_env = trust_env85 self._netrc = NetRCInfo()8687 @property88 def trust_env(self) -> bool:89 return self._trust_env9091 def _get_proxy_map(92 self, proxies: typing.Optional[ProxiesTypes], trust_env: bool,93 ) -> typing.Dict[str, typing.Optional[Proxy]]:94 if proxies is None:
1401 unmodified lines