diff options
author | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-04-24 18:31:07 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-04-24 18:31:07 -0500 |
commit | 6c1dcdb8b2ff216409f7c654f22155c001c0fb61 (patch) | |
tree | f14f65b9c29bfeb83c4268dfd468e8e875530de3 | |
parent | 3f36b3f8ce593fc16d5cd14d3cc5389f0e30d489 (diff) | |
download | urllib3-6c1dcdb8b2ff216409f7c654f22155c001c0fb61.tar.gz |
Rename _get_next_chunk to _update_chunk_length
-rw-r--r-- | urllib3/response.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urllib3/response.py b/urllib3/response.py index 25d3d555..0f619cbc 100644 --- a/urllib3/response.py +++ b/urllib3/response.py @@ -386,7 +386,7 @@ class HTTPResponse(io.IOBase): b[:len(temp)] = temp return len(temp) - def _get_next_chunk(self): + def _update_chunk_length(self): # First, we'll figure out length of a chunk and then # we'll try to read it from socket. if self.chunk_left is not None: @@ -438,7 +438,7 @@ class HTTPResponse(io.IOBase): raise ResponseNotChunked("Response is not chunked. " "Header 'transfer-encoding: chunked' is missing.") while True: - self._get_next_chunk() + self._update_chunk_length() if self.chunk_left == 0: break chunk = self._handle_chunk(amt) |