Mercurial > public > mercurial-scm > hg
comparison mercurial/upgrade_utils/actions.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 | a31e9840178e |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
43 | 43 |
44 FORMAT_VARIANT = b'deficiency' | 44 FORMAT_VARIANT = b'deficiency' |
45 OPTIMISATION = b'optimization' | 45 OPTIMISATION = b'optimization' |
46 | 46 |
47 | 47 |
48 class improvement(object): | 48 class improvement: |
49 """Represents an improvement that can be made as part of an upgrade.""" | 49 """Represents an improvement that can be made as part of an upgrade.""" |
50 | 50 |
51 ### The following attributes should be defined for each subclass: | 51 ### The following attributes should be defined for each subclass: |
52 | 52 |
53 # Either ``FORMAT_VARIANT`` or ``OPTIMISATION``. | 53 # Either ``FORMAT_VARIANT`` or ``OPTIMISATION``. |
682 # e.g. adding generaldelta could schedule parent redeltas. | 682 # e.g. adding generaldelta could schedule parent redeltas. |
683 | 683 |
684 return newactions | 684 return newactions |
685 | 685 |
686 | 686 |
687 class UpgradeOperation(object): | 687 class UpgradeOperation: |
688 """represent the work to be done during an upgrade""" | 688 """represent the work to be done during an upgrade""" |
689 | 689 |
690 def __init__( | 690 def __init__( |
691 self, | 691 self, |
692 ui, | 692 ui, |