Minor PEP-8 cleanup
authorChris Adams <chris@improbable.org>
Sun, 29 Jan 2012 21:51:28 +0000 (16:51 -0500)
committerChris Adams <chris@improbable.org>
Sun, 29 Jan 2012 21:51:28 +0000 (16:51 -0500)
requests/models.py

index c2cbe979184dfb74a49d178bbb8a252431f8a91b..3f8547ef6e44a2993d6bcb93ada3ec93e3a37610 100644 (file)
@@ -207,11 +207,8 @@ class Request(object):
         self.cookies.update(r.cookies)
 
         if r.status_code in REDIRECT_STATI and not self.redirect:
-
-            while (
-                ('location' in r.headers) and
-                ((r.status_code is codes.see_other) or (self.allow_redirects))
-            ):
+            while (('location' in r.headers) and
+                   ((r.status_code is codes.see_other) or (self.allow_redirects))):
 
                 if not len(history) < self.config.get('max_redirects'):
                     raise TooManyRedirects()