Skip to content
Snippets Groups Projects
Commit 0a2f1732 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Fix for newer urllib

parent 7daf968a
Branches
No related tags found
No related merge requests found
......@@ -176,8 +176,8 @@ class HTTPSClientCertTransport(suds.transport.http.HttpTransport):
self.key = key
self.cert = cert
def u2open(self, u2request):
tm = self.options.timeout
def u2open(self, u2request, timeout=None):
tm = timeout or self.options.timeout
if sys.version_info[0] >= 3:
url = urllib.request.build_opener(HTTPSClientAuthHandler(self.key, self.cert))
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment