git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e49a6c
)
on older versions of python xmlrpclib.Transport does not have a __init__ method
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Sun, 21 Jun 2009 05:26:26 +0000
(
05:26
+0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Sun, 21 Jun 2009 05:26:26 +0000
(
05:26
+0000)
PLC/PyCurl.py
patch
|
blob
|
history
diff --git
a/PLC/PyCurl.py
b/PLC/PyCurl.py
index
32051b4
..
e020882
100644
(file)
--- 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