removed deprecated while 1:
authorRiyad Parvez <social.riyad@gmail.com>
Sat, 5 Oct 2013 03:59:47 +0000 (09:59 +0600)
committerRiyad Parvez <social.riyad@gmail.com>
Sat, 5 Oct 2013 03:59:47 +0000 (09:59 +0600)
requests/models.py

index 8fd9735..46451c5 100644 (file)
@@ -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