commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9431 - trunk/gnue-common/src/rpc/drivers/xmlrpc


From: reinhard
Subject: [gnue] r9431 - trunk/gnue-common/src/rpc/drivers/xmlrpc
Date: Wed, 7 Mar 2007 04:13:28 -0600 (CST)

Author: reinhard
Date: 2007-03-07 04:13:28 -0600 (Wed, 07 Mar 2007)
New Revision: 9431

Modified:
   trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py
Log:
Changed the previous fix to be also compatible with Python 2.4.


Modified: trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py   2007-03-07 
10:12:09 UTC (rev 9430)
+++ trunk/gnue-common/src/rpc/drivers/xmlrpc/ClientAdapter.py   2007-03-07 
10:13:28 UTC (rev 9431)
@@ -52,7 +52,10 @@
   def __init__ (self):
 
     self.__connection = None
-    xmlrpclib.Transport.__init__(self)
+    # In Python 2.4, xmlrpclib.Transport does not have any __init__ method. In
+    # Python 2.5, it does has an __init__ method and it must be called.
+    if hasattr(xmlrpclib.Transport, '__init__'):
+        xmlrpclib.Transport.__init__(self)
 
 
   # ---------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]