From: Tom Christie Date: Tue, 31 Dec 2019 15:24:50 +0000 (+0000) Subject: Drop unused SSLConfig.with_overrides (#702) X-Git-Tag: 0.11.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe86c0c4b4c642f5638806a92229c634235521cd;p=thirdparty%2Fhttpx.git Drop unused SSLConfig.with_overrides (#702) --- diff --git a/httpx/config.py b/httpx/config.py index 294c1ab7..86fb4434 100644 --- a/httpx/config.py +++ b/httpx/config.py @@ -84,15 +84,6 @@ class SSLConfig: class_name = self.__class__.__name__ return f"{class_name}(cert={self.cert}, verify={self.verify})" - def with_overrides( - self, cert: CertTypes = None, verify: VerifyTypes = None - ) -> "SSLConfig": - cert = self.cert if cert is None else cert - verify = self.verify if verify is None else verify - if (cert == self.cert) and (verify == self.verify): - return self - return SSLConfig(cert=cert, verify=verify) - def load_ssl_context(self, http2: bool = False) -> ssl.SSLContext: logger.trace( f"load_ssl_context "