Merge "Optimizing code (wrap_socket())"
This commit is contained in:
commit
ccb3ff90c5
@ -114,7 +114,7 @@ class DS8KHTTPSConnection(connection.VerifiedHTTPSConnection):
|
|||||||
|
|
||||||
# Wrap socket using verification with the root certs in
|
# Wrap socket using verification with the root certs in
|
||||||
# trusted_root_certs
|
# trusted_root_certs
|
||||||
self.sock = ssl.wrap_socket(conn)
|
self.sock = ssl.SSLContext.wrap_socket(conn)
|
||||||
|
|
||||||
self._verify_cert(self.sock, self.ca_certs)
|
self._verify_cert(self.sock, self.ca_certs)
|
||||||
self.is_verified = True
|
self.is_verified = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user