comparison mercurial/interfaces/util.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 f4733654f144
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
18 Attribute = zi.Attribute 18 Attribute = zi.Attribute
19 Interface = zi.Interface 19 Interface = zi.Interface
20 implementer = zi.implementer 20 implementer = zi.implementer
21 else: 21 else:
22 22
23 class Attribute(object): 23 class Attribute:
24 def __init__(self, __name__, __doc__=b''): 24 def __init__(self, __name__, __doc__=b''):
25 pass 25 pass
26 26
27 class Interface(object): 27 class Interface:
28 def __init__( 28 def __init__(
29 self, name, bases=(), attrs=None, __doc__=None, __module__=None 29 self, name, bases=(), attrs=None, __doc__=None, __module__=None
30 ): 30 ):
31 pass 31 pass
32 32