764 # necessary. The xmlrpclib.Transport classes are old-style classes, and |
764 # necessary. The xmlrpclib.Transport classes are old-style classes, and |
765 # it turns out their __init__() doesn't get called when doing multiple |
765 # it turns out their __init__() doesn't get called when doing multiple |
766 # inheritance with a new-style class. |
766 # inheritance with a new-style class. |
767 class cookietransport(cookietransportrequest, xmlrpclib.Transport): |
767 class cookietransport(cookietransportrequest, xmlrpclib.Transport): |
768 def __init__(self, use_datetime=0): |
768 def __init__(self, use_datetime=0): |
769 if util.safehasattr(xmlrpclib.Transport, "__init__"): |
769 if hasattr(xmlrpclib.Transport, "__init__"): |
770 xmlrpclib.Transport.__init__(self, use_datetime) |
770 xmlrpclib.Transport.__init__(self, use_datetime) |
771 |
771 |
772 |
772 |
773 class cookiesafetransport(cookietransportrequest, xmlrpclib.SafeTransport): |
773 class cookiesafetransport(cookietransportrequest, xmlrpclib.SafeTransport): |
774 def __init__(self, use_datetime=0): |
774 def __init__(self, use_datetime=0): |
775 if util.safehasattr(xmlrpclib.Transport, "__init__"): |
775 if hasattr(xmlrpclib.Transport, "__init__"): |
776 xmlrpclib.SafeTransport.__init__(self, use_datetime) |
776 xmlrpclib.SafeTransport.__init__(self, use_datetime) |
777 |
777 |
778 |
778 |
779 class bzxmlrpc(bzaccess): |
779 class bzxmlrpc(bzaccess): |
780 """Support for access to Bugzilla via the Bugzilla XMLRPC API. |
780 """Support for access to Bugzilla via the Bugzilla XMLRPC API. |