summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-05-11 18:50:36 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-05-11 18:50:36 +0000
commitb26bb47b35e53d2d2bf367f7b6846ecb608c8cc7 (patch)
tree2effc92d814a78c427c4d6b3357af23a7412e6c2
parentacb08a52b4287d1da3ab5429a63b8be187ec6149 (diff)
downloadbcfg2-b26bb47b35e53d2d2bf367f7b6846ecb608c8cc7.tar.gz
bcfg2-b26bb47b35e53d2d2bf367f7b6846ecb608c8cc7.tar.bz2
bcfg2-b26bb47b35e53d2d2bf367f7b6846ecb608c8cc7.zip
SSL: Fix Transport constructor call on python2.4 (Patch from Tim Laszlo)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5218 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Proxy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py
index de2941a3c..d7d9b9028 100644
--- a/src/lib/Proxy.py
+++ b/src/lib/Proxy.py
@@ -82,7 +82,8 @@ class SSLHTTPConnection(httplib.HTTPConnection):
class XMLRPCTransport(xmlrpclib.Transport):
def __init__(self, key=None, cert=None, ca=None, use_datetime=0):
- xmlrpclib.Transport.__init__(self, use_datetime)
+ if hasattr(xmlrpclib.Transport, '__init__'):
+ xmlrpclib.Transport.__init__(self, use_datetime)
self.key = key
self.cert = cert
self.ca = ca