projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e695941
)
Minor PEP-8 cleanup
author
Chris Adams
<chris@improbable.org>
Sun, 29 Jan 2012 21:51:28 +0000
(16:51 -0500)
committer
Chris Adams
<chris@improbable.org>
Sun, 29 Jan 2012 21:51:28 +0000
(16:51 -0500)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index c2cbe979184dfb74a49d178bbb8a252431f8a91b..3f8547ef6e44a2993d6bcb93ada3ec93e3a37610 100644
(file)
--- 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()