def connect(self):
    """Connect to the host and port specified in __init__."""
    server_address = ((self.host, self.port))

    ctx = SSL.Context(_SSL_VERSION)
    ctx.set_cipher_list(_CIPHER_LIST)

    if hasattr(self, '_ca_cert_chain'):
      self._LoadCACertChain(ctx)
    else:
      raise SimianClientError('Missing CA certificate chain')

    logging.debug('SSL configuring with context')
    sock = SSL.Connection(ctx)
    logging.debug('SSL connect(%s)', server_address)
    try:
      sock.connect(server_address)
    except SSL.SSLError, e:
      raise SimianClientError(str(e) % 'SSL error: %s')
    except Checker.SSLVerificationError, e:
      raise SimianClientError('SSLVerificationError: %s' % str(e))

    logging.debug('SSL connected %s', server_address)
    self.sock = sock
    # Note we are dropping HTTP CONNECT tunnel support by not handling
    # _tunnel_* options here, see original HTTPConnection.connect().
dataset/ETHPy150Open google/simian/src/simian/client/client.py/HTTPSMultiBodyConnection.connect/swapped operands of `%`