From 616483d78a02dfdd7586f02e7094a148f1a50f1b Mon Sep 17 00:00:00 2001 From: Viktor Villainov Date: Tue, 3 Sep 2019 02:27:16 -0400 Subject: [PATCH] Remove double process_response function call since it's called in anon_post already --- toot/api.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/toot/api.py b/toot/api.py index 3e92c26..e654fa4 100644 --- a/toot/api.py +++ b/toot/api.py @@ -55,7 +55,7 @@ def login(app, username, password): if response.is_redirect: raise AuthenticationError() - return http.process_response(response).json() + return response.json() def get_browser_login_url(app): @@ -79,9 +79,7 @@ def request_access_token(app, authorization_code): 'redirect_uri': 'urn:ietf:wg:oauth:2.0:oob', } - response = http.anon_post(url, data, allow_redirects=False) - - return http.process_response(response).json() + return http.anon_post(url, data, allow_redirects=False).json() def post_status(