Merge "Optimizing code (wrap_socket())"

This commit is contained in:
Zuul 2018-08-22 22:57:15 +00:00 committed by Gerrit Code Review
commit ccb3ff90c5
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class DS8KHTTPSConnection(connection.VerifiedHTTPSConnection):
# Wrap socket using verification with the root certs in
# 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.is_verified = True