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)
# ---------------------------------------------------------------------------
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue