def revoke(self, revoke_uri=None, refresh_token=None):
    """Revokes access via a refresh token.

    Args:
      revoke_uri: string, URI for revoke endpoint. If not provided, or if
        None is provided, the revoke_uri attribute on the object is used.
      refresh_token: string, refresh token. If not provided, or if None is
        provided, the refresh_token attribute on the object is used.

    Raises:
      UnsupportedTokenType if the token is not one of the supported token
      classes listed above.

    Example:
      >>> token.revoke()
    """
    base_revoke_uri = revoke_uri or self.revoke_uri
    refresh_token = refresh_token or self.refresh_token
    revoke_uri = atom.http_core.ParseUri(base_revoke_uri)
    revoke_uri.query['token'] = refresh_token
    http_client = atom.http_core.HttpClient()
    http_request = atom.http_core.HttpRequest(uri=revoke_uri, method='GET')
    response = http_client.request(http_request)
    if response.status is not 200:
      raise OAuth2RevokeError(response)
    else:
      self._invalid = True
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py/OAuth2Token.revoke/operator `!=` -> `is not`