comparison tests/test-batching.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 493034cc3265
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
18 def bprint(*bs): 18 def bprint(*bs):
19 print(*[pycompat.sysstr(b) for b in bs]) 19 print(*[pycompat.sysstr(b) for b in bs])
20 20
21 21
22 # equivalent of repo.repository 22 # equivalent of repo.repository
23 class thing(object): 23 class thing:
24 def hello(self): 24 def hello(self):
25 return b"Ready." 25 return b"Ready."
26 26
27 27
28 # equivalent of localrepo.localrepository 28 # equivalent of localrepo.localrepository
105 105
106 106
107 # server side 107 # server side
108 108
109 # equivalent of wireproto's global functions 109 # equivalent of wireproto's global functions
110 class server(object): 110 class server:
111 def __init__(self, local): 111 def __init__(self, local):
112 self.local = local 112 self.local = local
113 113
114 def _call(self, name, args): 114 def _call(self, name, args):
115 args = dict(arg.split(b'=', 1) for arg in args) 115 args = dict(arg.split(b'=', 1) for arg in args)