mirror of https://github.com/ansible/ansible.git
Fix url lookup for python 3 (#17295)
* Use six instead of urllib2, for python 3 compat * Open the certificate file using binary mode On python3, os.write requires 'bytes'. Also avoid using a too broad exception, since the issue was hard to spot due to it. * Do not add the header User-agent if not set Python3 module do raise a exception if a header is not a string-like object, and the default value is None.pull/17325/head
parent
bc8680f12d
commit
acd69bcc77
Loading…
Reference in New Issue