From: Can Ibanoglu Date: Tue, 22 Oct 2013 20:48:04 +0000 (+0300) Subject: Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects X-Git-Tag: v2.0.1~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cd6959f1907dc50423ca147fa797f17a64d26af;p=services%2Fpython-requests.git Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects --- diff --git a/AUTHORS.rst b/AUTHORS.rst index 67114b7..31b2c2e 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -139,3 +139,4 @@ Patches and Suggestions - Park Ilsu @daftshady - Matt Spitz @mattspitz - Vikram Oberoi @voberoi +- Can Ibanoglu @canibanoglu diff --git a/requests/sessions.py b/requests/sessions.py index d8e040c..cc72f65 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -73,7 +73,7 @@ class SessionRedirectMixin(object): i = 0 # ((resp.status_code is codes.see_other)) - while (('location' in resp.headers and resp.status_code in REDIRECT_STATI)): + while ('location' in resp.headers and resp.status_code in REDIRECT_STATI): prepared_request = req.copy() resp.content # Consume socket so it can be released