def _Connect(self):
    """Return a HTTPSConnection object.

    Returns:
      HTTPConnection object
    """
    conn_args = (self.hostname, self.port)
    if self.proxy_hostname:
      conn_args = (self.proxy_hostname, self.proxy_port)
      use_https = self.proxy_use_https
    else:
      use_https = self.use_https

    if use_https:
      conn = HTTPSMultiBodyConnection(*conn_args)
    else:
      conn = HTTPMultiBodyConnection(*conn_args)

    # NOTE(user): at this point it would be nice to copy our debug level
    # into the http connection instance with set_debuglevel().  however the
    # debug is printed to stdout, which will foul up our clients.

    if self._progress_callback is not None:
      conn.SetProgressCallback(self._progress_callback)

    if use_https:
      if self._ca_cert_chain is not None:
        conn.SetCACertChain(self._ca_cert_chain)

    try:
      conn.connect()
    except httplib.socket.error, e:
      raise SimianClientError(str(e) % '_Connect() httplib.socket.error: %s')
    return conn
dataset/ETHPy150Open google/simian/src/simian/client/client.py/HttpsClient._Connect/swapped operands of `%`