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

Get rid of 'context' :( to support older Pythons

parent 308e3f6f
No related branches found
No related tags found
No related merge requests found
...@@ -147,10 +147,10 @@ class HTTPSClientAuthHandler(urllib2.HTTPSHandler): ...@@ -147,10 +147,10 @@ class HTTPSClientAuthHandler(urllib2.HTTPSHandler):
self.cert = cert self.cert = cert
def https_open(self, req): def https_open(self, req):
return self.do_open(self.get_connection, req, context=self._context) return self.do_open(self.get_connection, req)
def get_connection(self, host, timeout=5, context=None): def get_connection(self, host, timeout=5):
return httplib.HTTPSConnection(host, key_file=self.key, cert_file=self.cert, timeout=timeout, context=context) return httplib.HTTPSConnection(host, key_file=self.key, cert_file=self.cert, timeout=timeout)
class HTTPSClientCertTransport(suds.transport.http.HttpTransport): class HTTPSClientCertTransport(suds.transport.http.HttpTransport):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment