Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects
authorCan Ibanoglu <can@howyoucod.in>
Tue, 22 Oct 2013 20:48:04 +0000 (23:48 +0300)
committerCan Ibanoglu <can@howyoucod.in>
Tue, 22 Oct 2013 20:48:04 +0000 (23:48 +0300)
AUTHORS.rst
requests/sessions.py

index 67114b7..31b2c2e 100644 (file)
@@ -139,3 +139,4 @@ Patches and Suggestions
 - Park Ilsu <daftonshady@gmail.com> @daftshady
 - Matt Spitz @mattspitz
 - Vikram Oberoi @voberoi
+- Can Ibanoglu <can.ibanoglu@gmail.com> @canibanoglu
index d8e040c..cc72f65 100644 (file)
@@ -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