comparison mercurial/revlogutils/nodemap.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 2e726c934fcd
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
111 callback_id, lambda tr: persist_nodemap(tr, revlog, pending=True) 111 callback_id, lambda tr: persist_nodemap(tr, revlog, pending=True)
112 ) 112 )
113 tr.addfinalize(callback_id, lambda tr: persist_nodemap(tr, revlog)) 113 tr.addfinalize(callback_id, lambda tr: persist_nodemap(tr, revlog))
114 114
115 115
116 class _NoTransaction(object): 116 class _NoTransaction:
117 """transaction like object to update the nodemap outside a transaction""" 117 """transaction like object to update the nodemap outside a transaction"""
118 118
119 def __init__(self): 119 def __init__(self):
120 self._postclose = {} 120 self._postclose = {}
121 121
302 ONDISK_VERSION = 1 302 ONDISK_VERSION = 1
303 S_VERSION = struct.Struct(">B") 303 S_VERSION = struct.Struct(">B")
304 S_HEADER = struct.Struct(">BQQQQ") 304 S_HEADER = struct.Struct(">BQQQQ")
305 305
306 306
307 class NodeMapDocket(object): 307 class NodeMapDocket:
308 """metadata associated with persistent nodemap data 308 """metadata associated with persistent nodemap data
309 309
310 The persistent data may come from disk or be on their way to disk. 310 The persistent data may come from disk or be on their way to disk.
311 """ 311 """
312 312