hgext/bugzilla.py
changeset 43115 4aa72cdf616f
parent 43077 687b865b95ad
child 43380 579672b347d2
equal deleted inserted replaced
43114:8197b395710e 43115:4aa72cdf616f
   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.