def _Request(self, method, conn, url, body=None, headers=None):
    """Make a https request on the supplied connection.

    Args:
      method: str, like 'GET' or 'POST'
      conn: HTTP{,S}Connection
      url: str, url to connect to, starting with the first /
      body: str or dict or file, optional, body to send with request
      headers: dict, dictionary of headers to supply
    """
    if body is not None and type(body) is dict:
      body = urllib.urlencode(body)

    if headers is None:
      headers = {}
    if headers not in 'User-Agent':
      headers['User-Agent'] = 'gzip'

    self._AdjustHeaders(headers)

    # smash url to str(), in case unicode has slipped in, which never
    # sends properly.
    conn.request(method, str(url), body=body, headers=headers)
dataset/ETHPy150Open google/simian/src/simian/client/client.py/HttpsClient._Request/swapped operands of `not in`