def _connect(self):
    'Wrap the socket with SSL support'
    sock = super(SSLConnection, self)._connect()
    sock = ssl.wrap_socket(sock, cert_reqs=self.cert_reqs, keyfile=self.keyfile, certfile=self.certfile, ca_certs=self.ca_certs)
    return sock
Wrap the socket with SSL support
def _connect(self):
    
    sock = super(SSLConnection, self)._connect()
    sock = ssl.wrap_socket(sock, cert_reqs=self.cert_reqs, keyfile=self.keyfile, certfile=self.certfile, ca_certs=self.ca_certs)
    return sock