From: Chris Adams Date: Sun, 29 Jan 2012 21:51:28 +0000 (-0500) Subject: Minor PEP-8 cleanup X-Git-Tag: v0.10.2~35^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49bed18a8357cf60761e55bb88802233de78bbe3;p=services%2Fpython-requests.git Minor PEP-8 cleanup --- diff --git a/requests/models.py b/requests/models.py index c2cbe97..3f8547e 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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()