729 # necessary. The xmlrpclib.Transport classes are old-style classes, and |
729 # necessary. The xmlrpclib.Transport classes are old-style classes, and |
730 # it turns out their __init__() doesn't get called when doing multiple |
730 # it turns out their __init__() doesn't get called when doing multiple |
731 # inheritance with a new-style class. |
731 # inheritance with a new-style class. |
732 class cookietransport(cookietransportrequest, xmlrpclib.Transport): |
732 class cookietransport(cookietransportrequest, xmlrpclib.Transport): |
733 def __init__(self, use_datetime=0): |
733 def __init__(self, use_datetime=0): |
734 if util.safehasattr(xmlrpclib.Transport, b"__init__"): |
734 if util.safehasattr(xmlrpclib.Transport, "__init__"): |
735 xmlrpclib.Transport.__init__(self, use_datetime) |
735 xmlrpclib.Transport.__init__(self, use_datetime) |
736 |
736 |
737 |
737 |
738 class cookiesafetransport(cookietransportrequest, xmlrpclib.SafeTransport): |
738 class cookiesafetransport(cookietransportrequest, xmlrpclib.SafeTransport): |
739 def __init__(self, use_datetime=0): |
739 def __init__(self, use_datetime=0): |
740 if util.safehasattr(xmlrpclib.Transport, b"__init__"): |
740 if util.safehasattr(xmlrpclib.Transport, "__init__"): |
741 xmlrpclib.SafeTransport.__init__(self, use_datetime) |
741 xmlrpclib.SafeTransport.__init__(self, use_datetime) |
742 |
742 |
743 |
743 |
744 class bzxmlrpc(bzaccess): |
744 class bzxmlrpc(bzaccess): |
745 """Support for access to Bugzilla via the Bugzilla XMLRPC API. |
745 """Support for access to Bugzilla via the Bugzilla XMLRPC API. |