Skip to content
Myr

Drop unused SSLConfig.with_overrides (#702)

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

authored by Tom Christie · committed by GitHub · parent 2c4a1dd · Browse files · 1 file+0 added−9 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+0 added−9 removed

  • other:+0 added−9 removed

1 file+0 added−9 removed

modified:httpx/config.py-9 removed
82 unmodified lines
83 def __repr__(self) -> str:84 class_name = self.__class__.__name__85 return f"{class_name}(cert={self.cert}, verify={self.verify})"8687 def with_overrides(88 self, cert: CertTypes = None, verify: VerifyTypes = None89 ) -> "SSLConfig":90 cert = self.cert if cert is None else cert91 verify = self.verify if verify is None else verify92 if (cert == self.cert) and (verify == self.verify):93 return self94 return SSLConfig(cert=cert, verify=verify)9587 def load_ssl_context(self, http2: bool = False) -> ssl.SSLContext:88 logger.trace(89 f"load_ssl_context "90 f"verify={self.verify!r} "
229 unmodified lines