

def _connect(self):
    '\n        Use the appropriate connection class; optionally with security.\n        '
    timeout = None
    if ((self._options is not None) and ('timeout' in self._options)):
        timeout = self._options['timeout']
    if self._client._credentials:
        self._connection = self._connection_class(host=self._node.host, port=self._node.http_port, credentials=self._client._credentials, timeout=timeout)
    else:
        self._connection = self._connection_class(host=self._node.host, port=self._node.http_port, timeout=timeout)
    self.server_version

dataset/ETHPy150Open basho/riak-python-client/riak/transports/http/connection.py HttpConnection._connect/original