summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2017-01-10 18:24:16 +0100
committerMartin Basti <mbasti@redhat.com>2017-01-24 13:25:47 +0100
commit51578882fc8456788d69a57de1a1d45ead58ba14 (patch)
tree02b00ae4214947d61ca21f3b9c54a1c56d3de6a4 /ipapython
parentc0b5c6709d9e3a51117994fc8b605ba54e6263d7 (diff)
downloadfreeipa-51578882fc8456788d69a57de1a1d45ead58ba14.tar.gz
freeipa-51578882fc8456788d69a57de1a1d45ead58ba14.tar.xz
freeipa-51578882fc8456788d69a57de1a1d45ead58ba14.zip
py3: HTTPResponse has no 'dict' attribute in 'msg'
There is no 'dict' attribute in 'msg', but 'msg' attribute is dict-like object in both py2/3, so it can be used instead. https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/dogtag.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/dogtag.py b/ipapython/dogtag.py
index 37e7a5892..c6a8346d9 100644
--- a/ipapython/dogtag.py
+++ b/ipapython/dogtag.py
@@ -205,7 +205,7 @@ def _httplib_request(
res = conn.getresponse()
http_status = res.status
- http_headers = res.msg.dict
+ http_headers = res.msg
http_body = res.read()
conn.close()
except Exception as e: