comparison hgext/absorb.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 f254fc73d956
children 0f0e3830c099
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
81 } 81 }
82 82
83 defaultdict = collections.defaultdict 83 defaultdict = collections.defaultdict
84 84
85 85
86 class nullui(object): 86 class nullui:
87 """blank ui object doing nothing""" 87 """blank ui object doing nothing"""
88 88
89 debugflag = False 89 debugflag = False
90 verbose = False 90 verbose = False
91 quiet = True 91 quiet = True
95 return 95 return
96 96
97 return nullfunc 97 return nullfunc
98 98
99 99
100 class emptyfilecontext(object): 100 class emptyfilecontext:
101 """minimal filecontext representing an empty file""" 101 """minimal filecontext representing an empty file"""
102 102
103 def __init__(self, repo): 103 def __init__(self, repo):
104 self._repo = repo 104 self._repo = repo
105 105
275 branch=None, 275 branch=None,
276 extra=extra, 276 extra=extra,
277 ) 277 )
278 278
279 279
280 class filefixupstate(object): 280 class filefixupstate:
281 """state needed to apply fixups to a single file 281 """state needed to apply fixups to a single file
282 282
283 internally, it keeps file contents of several revisions and a linelog. 283 internally, it keeps file contents of several revisions and a linelog.
284 284
285 the linelog uses odd revision numbers for original contents (fctxs passed 285 the linelog uses odd revision numbers for original contents (fctxs passed
653 b'inserted', 653 b'inserted',
654 b'diff.inserted', 654 b'diff.inserted',
655 ) 655 )
656 656
657 657
658 class fixupstate(object): 658 class fixupstate:
659 """state needed to run absorb 659 """state needed to run absorb
660 660
661 internally, it keeps paths and filefixupstates. 661 internally, it keeps paths and filefixupstates.
662 662
663 a typical use is like filefixupstates: 663 a typical use is like filefixupstates: