comparison mercurial/changegroup.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 d44e3c45f0e4
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
103 vfs.unlink(cleanup) 103 vfs.unlink(cleanup)
104 else: 104 else:
105 os.unlink(cleanup) 105 os.unlink(cleanup)
106 106
107 107
108 class cg1unpacker(object): 108 class cg1unpacker:
109 """Unpacker for cg1 changegroup streams. 109 """Unpacker for cg1 changegroup streams.
110 110
111 A changegroup unpacker handles the framing of the revision data in 111 A changegroup unpacker handles the framing of the revision data in
112 the wire format. Most consumers will want to use the apply() 112 the wire format. Most consumers will want to use the apply()
113 method to add the changes from the changegroup to a repository. 113 method to add the changes from the changegroup to a repository.
689 sidedata, 689 sidedata,
690 protocol_flags, 690 protocol_flags,
691 ) 691 )
692 692
693 693
694 class headerlessfixup(object): 694 class headerlessfixup:
695 def __init__(self, fh, h): 695 def __init__(self, fh, h):
696 self._h = h 696 self._h = h
697 self._fh = fh 697 self._fh = fh
698 698
699 def read(self, n): 699 def read(self, n):
1001 1001
1002 if progress: 1002 if progress:
1003 progress.complete() 1003 progress.complete()
1004 1004
1005 1005
1006 class cgpacker(object): 1006 class cgpacker:
1007 def __init__( 1007 def __init__(
1008 self, 1008 self,
1009 repo, 1009 repo,
1010 oldmatcher, 1010 oldmatcher,
1011 matcher, 1011 matcher,