def get(self):
        state = self.request.get("state")
        code = self.request.get("code")
        error = self.request.get("error")
        q = {
            "code": code,
            "client_id": client_id,
            "client_secret": client_secret,
            "redirect_uri": config.auth_redir_uri,
            "grant_type": "authorization_code",
        }
        result = query_json("https://accounts.google.com/o/oauth2/token", q)
        url = (config.auth_success_page if result in "access_token"
               else config.auth_failure_page) + "#" + urlencode(result)
        self.response.location = url
        self.response.status_int = 302
        # return result as redirect to static page
dataset/ETHPy150Open MarSoft/PebbleNotes/gae/auth.py/AuthCallback.get/swapped operands of `in`