From 769ca5a76a4dcd2f4c87248c12dc0ced5313ab75 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Fri, 2 Dec 2016 15:37:58 -0800 Subject: Rename non-URL occurrences of docker-py to "Docker SDK for Python" Signed-off-by: Joffrey F --- docker/utils/json_stream.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docker/utils/json_stream.py') diff --git a/docker/utils/json_stream.py b/docker/utils/json_stream.py index f97ab9e..addffdf 100644 --- a/docker/utils/json_stream.py +++ b/docker/utils/json_stream.py @@ -13,10 +13,11 @@ json_decoder = json.JSONDecoder() def stream_as_text(stream): - """Given a stream of bytes or text, if any of the items in the stream + """ + Given a stream of bytes or text, if any of the items in the stream are bytes convert them to text. - This function can be removed once docker-py returns text streams instead - of byte streams. + This function can be removed once we return text streams + instead of byte streams. """ for data in stream: if not isinstance(data, six.text_type): -- cgit v1.2.1