diff options
author | Joffrey F <joffrey@docker.com> | 2016-12-02 15:37:58 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-12-12 13:28:49 -0800 |
commit | 769ca5a76a4dcd2f4c87248c12dc0ced5313ab75 (patch) | |
tree | 5ad7f9455182097b9ec873f3ddef380a40a389ac /docker | |
parent | c6d1c2dc847a1bcc3590a7a006b10159f8182307 (diff) | |
download | docker-py-docker_sdk_rename.tar.gz |
Rename non-URL occurrences of docker-py to "Docker SDK for Python"docker_sdk_rename
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker')
-rw-r--r-- | docker/transport/npipeconn.py | 2 | ||||
-rw-r--r-- | docker/utils/json_stream.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/docker/transport/npipeconn.py b/docker/transport/npipeconn.py index 3054037..db059b4 100644 --- a/docker/transport/npipeconn.py +++ b/docker/transport/npipeconn.py @@ -96,7 +96,7 @@ class NpipeAdapter(requests.adapters.HTTPAdapter): # doesn't have a hostname, like is the case when using a UNIX socket. # Since proxies are an irrelevant notion in the case of UNIX sockets # anyway, we simply return the path URL directly. - # See also: https://github.com/docker/docker-py/issues/811 + # See also: https://github.com/docker/docker-sdk-python/issues/811 return request.path_url def close(self): 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): |