From b5f0bf5f6e900fc383d9251a90d5476bfd48c0cd Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Sun, 21 Jun 2009 05:26:26 +0000 Subject: [PATCH] on older versions of python xmlrpclib.Transport does not have a __init__ method --- PLC/PyCurl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PLC/PyCurl.py b/PLC/PyCurl.py index 32051b4..e020882 100644 --- a/PLC/PyCurl.py +++ b/PLC/PyCurl.py @@ -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 -- 2.43.0