on older versions of python xmlrpclib.Transport does not have a __init__ method
authorMarc Fiuczynski <mef@cs.princeton.edu>
Sun, 21 Jun 2009 05:26:26 +0000 (05:26 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Sun, 21 Jun 2009 05:26:26 +0000 (05:26 +0000)
PLC/PyCurl.py

index 32051b4..e020882 100644 (file)
@@ -15,7 +15,8 @@ from tempfile import NamedTemporaryFile
 
 class PyCurlTransport(xmlrpclib.Transport):
     def __init__(self, uri, cert = None, timeout = 300):
-        xmlrpclib.Transport.__init__(self)
+        if hasattr(xmlrpclib.Transport,'__init__'):
+            xmlrpclib.Transport.__init__(self)
         self.curl = pycurl.Curl()
 
         # Suppress signals