From 5e84852ec99482f089474334e7c60d9321d492ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 9 Dec 2010 12:32:38 +0100 Subject: [PATCH] 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. --- sfa/util/xmlrpcprotocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.47.0