summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-01-10 18:14:20 -0800
committerGitHub <noreply@github.com>2017-01-10 18:14:20 -0800
commit1786c81a654611fe2c4ca4f03904aab0b533c1ed (patch)
tree9a3166227ac5125d0b2673376e067f32a85d6706 /bin
parentf340b8d14fec8c96f28c16c3c4d70f2d3fb83383 (diff)
downloadansible-1786c81a654611fe2c4ca4f03904aab0b533c1ed.tar.gz
Previous fix to this failed to account for open_url returning a filehandle (#20097)
* Previous fix to this failed to account for open_url returning a filehandle Fixes the bugs introduced by c6fb355 * read() from HTTPError for python-3.6+ HTTPError is funny. It contains a filehandle to read the response from and also makes it available via a read() method. On earlier versions of python (2 and 3) the read() method was enough to make it work with json.load(). The newer version of json.load() needs a more complete file interface than this and has stopped working. Read the bytes, transform to str and pass it in manually to fix it.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions