comparison mercurial/exchange.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 2cce2fa5bcf7
children 6d15a8971e30
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
220 exchange = ui.configlist(b'devel', b'legacy.exchange') 220 exchange = ui.configlist(b'devel', b'legacy.exchange')
221 forcebundle1 = b'bundle2' not in exchange and b'bundle1' in exchange 221 forcebundle1 = b'bundle2' not in exchange and b'bundle1' in exchange
222 return forcebundle1 or not op.remote.capable(b'bundle2') 222 return forcebundle1 or not op.remote.capable(b'bundle2')
223 223
224 224
225 class pushoperation(object): 225 class pushoperation:
226 """A object that represent a single push operation 226 """A object that represent a single push operation
227 227
228 Its purpose is to carry push related state and very common operations. 228 Its purpose is to carry push related state and very common operations.
229 229
230 A new pushoperation should be created at the beginning of each push and 230 A new pushoperation should be created at the beginning of each push and
1369 # discovery can have set the value form invalid entry 1369 # discovery can have set the value form invalid entry
1370 if pushop.bkresult is not None: 1370 if pushop.bkresult is not None:
1371 pushop.bkresult = 1 1371 pushop.bkresult = 1
1372 1372
1373 1373
1374 class pulloperation(object): 1374 class pulloperation:
1375 """A object that represent a single pull operation 1375 """A object that represent a single pull operation
1376 1376
1377 It purpose is to carry pull related state and very common operation. 1377 It purpose is to carry pull related state and very common operation.
1378 1378
1379 A new should be created at the beginning of each pull and discarded 1379 A new should be created at the beginning of each pull and discarded