try using HTTPSConnection instead of the old HTTPS compatibility class
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 9 Dec 2010 11:32:38 +0000 (12:32 +0100)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 9 Dec 2010 11:32:38 +0000 (12:32 +0100)
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

index 6c9918b..df60877 100644 (file)
@@ -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()