From: Barış Metin Date: Thu, 9 Dec 2010 11:32:38 +0000 (+0100) Subject: try using HTTPSConnection instead of the old HTTPS compatibility class X-Git-Tag: sfa-1.0-10~1^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5e84852ec99482f089474334e7c60d9321d492ab;p=sfa.git try using HTTPSConnection instead of the old HTTPS compatibility class from 1.5. HTTPSConnection practically have the same interface for our use and xmlrpclib from python 2.7 requires the additional methods it provides. --- diff --git a/sfa/util/xmlrpcprotocol.py b/sfa/util/xmlrpcprotocol.py index 6c9918b9..df60877c 100644 --- a/sfa/util/xmlrpcprotocol.py +++ b/sfa/util/xmlrpcprotocol.py @@ -34,13 +34,13 @@ class XMLRPCTransport(xmlrpclib.Transport): import httplib host, extra_headers, x509 = self.get_host_info(host) try: - HTTPS = httplib.HTTPS() + HTTPS = httplib.HTTPSConnection() except AttributeError: raise NotImplementedError( "your version of httplib doesn't support HTTPS" ) else: - return httplib.HTTPS(host, None, key_file=self.key_file, cert_file=self.cert_file) #**(x509 or {})) + return httplib.HTTPSConnection(host, None, key_file=self.key_file, cert_file=self.cert_file) #**(x509 or {})) def getparser(self): unmarshaller = ExceptionUnmarshaller()