comparison hgext/git/gitlog.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 d44e3c45f0e4
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
27 ) 27 )
28 28
29 pygit2 = gitutil.get_pygit2() 29 pygit2 = gitutil.get_pygit2()
30 30
31 31
32 class baselog(object): # revlog.revlog): 32 class baselog: # revlog.revlog):
33 """Common implementations between changelog and manifestlog.""" 33 """Common implementations between changelog and manifestlog."""
34 34
35 def __init__(self, gr, db): 35 def __init__(self, gr, db):
36 self.gitrepo = gr 36 self.gitrepo = gr
37 self._db = db 37 self._db = db
67 (pycompat.sysstr(n),), 67 (pycompat.sysstr(n),),
68 ).fetchone() 68 ).fetchone()
69 return t is not None 69 return t is not None
70 70
71 71
72 class baselogindex(object): 72 class baselogindex:
73 def __init__(self, log): 73 def __init__(self, log):
74 self._log = log 74 self._log = log
75 75
76 def has_node(self, n): 76 def has_node(self, n):
77 return self._log.rev(n) != -1 77 return self._log.rev(n) != -1