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 67114b7e34bd1bfbc5b6c2937ad3e22079cc0696..31b2c2e2976f547cae5c2b233fc5b9091c401368 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 d8e040c830d8a68a587c1822de99acc248caf372..cc72f65d9dceb97af1e5b99b4fb29ae5f4d13dec 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