def _connect(self):
        log = self.logger
        if self.scheme == 'http':
            conn_class = httplib.HTTPConnection
        else:
            conn_class = httplib.HTTPSConnection
        connection = conn_class(self.host, self.port, timeout=self.timeout)
        log.debug('connecting to {0}:{1}...'.format(self.host, self.port))
        connection.connect()
        log.debug('connected')
        self.connection = connection
Low-level connect.
dataset/ETHPy150Open ravello/testmill/lib/testmill/ravello.py/RavelloClient._connect