Update docker-py

From b79fee71ce
This commit is contained in:
Ben Firshman 2014-01-28 13:34:40 +00:00
parent 880bc0d8e3
commit 303e0cfd86
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class Client(requests.Session):
def _stream_result(self, response): def _stream_result(self, response):
"""Generator for straight-out, non chunked-encoded HTTP responses.""" """Generator for straight-out, non chunked-encoded HTTP responses."""
self._raise_for_status(response) self._raise_for_status(response)
for line in response.iter_lines(chunk_size=1): for line in response.iter_lines(chunk_size=1, decode_unicode=True):
# filter out keep-alive new lines # filter out keep-alive new lines
if line: if line:
yield line + '\n' yield line + '\n'