comparison hgext/githelp.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 0d414fb8336f
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
120 ) 120 )
121 121
122 return args, opts 122 return args, opts
123 123
124 124
125 class Command(object): 125 class Command:
126 def __init__(self, name): 126 def __init__(self, name):
127 self.name = name 127 self.name = name
128 self.args = [] 128 self.args = []
129 self.opts = {} 129 self.opts = {}
130 130
161 161
162 def __and__(self, other): 162 def __and__(self, other):
163 return AndCommand(self, other) 163 return AndCommand(self, other)
164 164
165 165
166 class AndCommand(object): 166 class AndCommand:
167 def __init__(self, left, right): 167 def __init__(self, left, right):
168 self.left = left 168 self.left = left
169 self.right = right 169 self.right = right
170 170
171 def __str__(self): 171 def __str__(self):