From 5c92c72e2cd18010048af1a3028a80e808ad4ec6 Mon Sep 17 00:00:00 2001 From: Riyad Parvez Date: Sat, 5 Oct 2013 09:59:47 +0600 Subject: [PATCH] removed deprecated while 1: --- requests/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/models.py b/requests/models.py index 8fd9735..46451c5 100644 --- a/requests/models.py +++ b/requests/models.py @@ -575,7 +575,7 @@ class Response(object): raise ChunkedEncodingError(e) except AttributeError: # Standard file-like object. - while 1: + while True: chunk = self.raw.read(chunk_size) if not chunk: break -- 2.7.4