ucscsdk/ucscdriver.py
def connect(self):
        """Overrides HTTPSConnection.connect to specify TLS version"""
        # Standard implementation from HTTPSConnection, which is not
        # designed for extension, unfortunately
        if sys.version_info >= (2, 7):
            sock = socket.create_connection((self.host, self.port),
                                            self.timeout, self.source_address)
        elif sys.version_info >= (2, 6):
            sock = socket.create_connection((self.host, self.port),
                                            self.timeout)
        else:
            sock = socket.create_connection((self.host, self.port))

        if getattr(self, '_tunnel_host', None):
            self.sock = sock
            self._tunnel()

        # This is the only difference; default wrap_socket uses SSLv23
        self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,
                                    ssl_version=ssl.PROTOCOL_TLSv1)
Overrides HTTPSConnection.connect to specify TLS version
Overrides HTTPSConnection.connect to specify TLS version
Overrides HTTPSConnection . connect to specify TLS version
def connect(self):
        if sys.version_info >= (2, 7):
            sock = socket.create_connection((self.host, self.port),
                                            self.timeout, self.source_address)
        elif sys.version_info >= (2, 6):
            sock = socket.create_connection((self.host, self.port),
                                            self.timeout)
        else:
            sock = socket.create_connection((self.host, self.port))
        if getattr(self, '_tunnel_host', None):
            self.sock = sock
            self._tunnel()
        self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,
                                    ssl_version=ssl.PROTOCOL_TLSv1)
def connect ( self ) : if sys . version_info >= ( 2 , 7 ) : sock = socket . create_connection ( ( self . host , self . port ) , self . timeout , self . source_address ) elif sys . version_info >= ( 2 , 6 ) : sock = socket . create_connection ( ( self . host , self . port ) , self . timeout ) else : sock = socket . create_connection ( ( self . host , self . port ) ) if getattr ( self , '_tunnel_host' , None ) : self . sock = sock self . _tunnel ( ) self . sock = ssl . wrap_socket ( sock , self . key_file , self . cert_file , ssl_version = ssl . PROTOCOL_TLSv1 )
Overrides HTTPSConnection.connect to specify TLS version
Overrides HTTPSConnection . connect to specify TLS version
"""Overrides HTTPSConnection.connect to specify TLS version""" # Standard implementation from HTTPSConnection, which is not # designed for extension, unfortunately # This is the only difference; default wrap_socket uses SSLv23
self