Mercurial > hg
comparison mercurial/chgserver.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 | cf99c4af1079 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
194 pass | 194 pass |
195 | 195 |
196 return _hashlist(pycompat.maplist(trystat, paths))[:12] | 196 return _hashlist(pycompat.maplist(trystat, paths))[:12] |
197 | 197 |
198 | 198 |
199 class hashstate(object): | 199 class hashstate: |
200 """a structure storing confighash, mtimehash, paths used for mtimehash""" | 200 """a structure storing confighash, mtimehash, paths used for mtimehash""" |
201 | 201 |
202 def __init__(self, confighash, mtimehash, mtimepaths): | 202 def __init__(self, confighash, mtimehash, mtimepaths): |
203 self.confighash = confighash | 203 self.confighash = confighash |
204 self.mtimehash = mtimehash | 204 self.mtimehash = mtimehash |
290 commandserver.setuplogging(newlui, fp=cdebug) | 290 commandserver.setuplogging(newlui, fp=cdebug) |
291 | 291 |
292 return (newui, newlui) | 292 return (newui, newlui) |
293 | 293 |
294 | 294 |
295 class channeledsystem(object): | 295 class channeledsystem: |
296 """Propagate ui.system() request in the following format: | 296 """Propagate ui.system() request in the following format: |
297 | 297 |
298 payload length (unsigned int), | 298 payload length (unsigned int), |
299 type, '\0', | 299 type, '\0', |
300 cmd, '\0', | 300 cmd, '\0', |
621 dirname, basename = os.path.split(address) | 621 dirname, basename = os.path.split(address) |
622 basename = basename.split(b'.', 1)[0] | 622 basename = basename.split(b'.', 1)[0] |
623 return b'%s-%s' % (os.path.join(dirname, basename), hashstr) | 623 return b'%s-%s' % (os.path.join(dirname, basename), hashstr) |
624 | 624 |
625 | 625 |
626 class chgunixservicehandler(object): | 626 class chgunixservicehandler: |
627 """Set of operations for chg services""" | 627 """Set of operations for chg services""" |
628 | 628 |
629 pollinterval = 1 # [sec] | 629 pollinterval = 1 # [sec] |
630 | 630 |
631 def __init__(self, ui): | 631 def __init__(self, ui): |