Skip to content
Snippets Groups Projects
Commit 822e75386c16 authored by Steven Stallion's avatar Steven Stallion
Browse files

bugzilla: fix transport initialization on python 2.4

parent e6dfbc5df76f
No related branches found
No related tags found
No related merge requests found
......@@ -585,7 +585,8 @@
# inheritance with a new-style class.
class cookietransport(cookietransportrequest, xmlrpclib.Transport):
def __init__(self, use_datetime=0):
xmlrpclib.Transport.__init__(self, use_datetime)
if util.safehasattr(xmlrpclib.Transport, "__init__"):
xmlrpclib.Transport.__init__(self, use_datetime)
class cookiesafetransport(cookietransportrequest, xmlrpclib.SafeTransport):
def __init__(self, use_datetime=0):
......@@ -589,7 +590,8 @@
class cookiesafetransport(cookietransportrequest, xmlrpclib.SafeTransport):
def __init__(self, use_datetime=0):
xmlrpclib.SafeTransport.__init__(self, use_datetime)
if util.safehasattr(xmlrpclib.Transport, "__init__"):
xmlrpclib.SafeTransport.__init__(self, use_datetime)
class bzxmlrpc(bzaccess):
"""Support for access to Bugzilla via the Bugzilla XMLRPC API.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment