Blame SOURCES/0001-replace-closed-with-fp-isclosed-for-rhel7.patch

f0cb50
From ab7da0672172e5d7def87c05d58d76a5970c7ac7 Mon Sep 17 00:00:00 2001
f0cb50
From: Lokesh Mandvekar <lsm5@fedoraproject.org>
f0cb50
Date: Mon, 9 Mar 2015 12:47:24 -0400
f0cb50
Subject: [PATCH] replace closed with _fp.isclosed() for rhel7
f0cb50
f0cb50
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
f0cb50
---
f0cb50
 docker/client.py | 2 +-
f0cb50
 1 file changed, 1 insertion(+), 1 deletion(-)
f0cb50
f0cb50
diff --git a/docker/client.py b/docker/client.py
f0cb50
index 79726aa..5a5a97c 100644
f0cb50
--- a/docker/client.py
f0cb50
+++ b/docker/client.py
f0cb50
@@ -185,7 +185,7 @@ class Client(requests.Session):
f0cb50
         """Generator for data coming from a chunked-encoded HTTP response."""
f0cb50
         if response.raw._fp.chunked:
f0cb50
             reader = response.raw
f0cb50
-            while not reader.closed:
f0cb50
+            while not reader._fp.isclosed():
f0cb50
                 # this read call will block until we get a chunk
f0cb50
                 data = reader.read(1)
f0cb50
                 if not data:
f0cb50
--
f0cb50
1.8.3.1
f0cb50