Mercurial > hg
comparison hgext/bugzilla.py @ 48946:642e31cb55f0
py3: use class X: instead of class X(object):
The inheritance from object is implied in Python 3. So this should
be equivalent.
This change was generated via an automated search and replace. So there
may have been some accidental changes.
Differential Revision: https://phab.mercurial-scm.org/D12352
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 13:08:28 -0700 |
parents | 6000f5b25c9b |
children | d718eddf01d9 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
432 b'version', | 432 b'version', |
433 default=None, | 433 default=None, |
434 ) | 434 ) |
435 | 435 |
436 | 436 |
437 class bzaccess(object): | 437 class bzaccess: |
438 '''Base class for access to Bugzilla.''' | 438 '''Base class for access to Bugzilla.''' |
439 | 439 |
440 def __init__(self, ui): | 440 def __init__(self, ui): |
441 self.ui = ui | 441 self.ui = ui |
442 usermap = self.ui.config(b'bugzilla', b'usermap') | 442 usermap = self.ui.config(b'bugzilla', b'usermap') |
688 | 688 |
689 | 689 |
690 # Bugzilla via XMLRPC interface. | 690 # Bugzilla via XMLRPC interface. |
691 | 691 |
692 | 692 |
693 class cookietransportrequest(object): | 693 class cookietransportrequest: |
694 """A Transport request method that retains cookies over its lifetime. | 694 """A Transport request method that retains cookies over its lifetime. |
695 | 695 |
696 The regular xmlrpclib transports ignore cookies. Which causes | 696 The regular xmlrpclib transports ignore cookies. Which causes |
697 a bit of a problem when you need a cookie-based login, as with | 697 a bit of a problem when you need a cookie-based login, as with |
698 the Bugzilla XMLRPC interface prior to 4.4.3. | 698 the Bugzilla XMLRPC interface prior to 4.4.3. |
1093 emails automatically. | 1093 emails automatically. |
1094 """ | 1094 """ |
1095 pass | 1095 pass |
1096 | 1096 |
1097 | 1097 |
1098 class bugzilla(object): | 1098 class bugzilla: |
1099 # supported versions of bugzilla. different versions have | 1099 # supported versions of bugzilla. different versions have |
1100 # different schemas. | 1100 # different schemas. |
1101 _versions = { | 1101 _versions = { |
1102 b'2.16': bzmysql, | 1102 b'2.16': bzmysql, |
1103 b'2.18': bzmysql_2_18, | 1103 b'2.18': bzmysql_2_18, |