comparison mercurial/pure/parsers.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 be9bf75a837c
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
61 DIRSTATE_V2_ALL_UNKNOWN_RECORDED = 1 << 14 61 DIRSTATE_V2_ALL_UNKNOWN_RECORDED = 1 << 14
62 DIRSTATE_V2_ALL_IGNORED_RECORDED = 1 << 15 62 DIRSTATE_V2_ALL_IGNORED_RECORDED = 1 << 15
63 63
64 64
65 @attr.s(slots=True, init=False) 65 @attr.s(slots=True, init=False)
66 class DirstateItem(object): 66 class DirstateItem:
67 """represent a dirstate entry 67 """represent a dirstate entry
68 68
69 It hold multiple attributes 69 It hold multiple attributes
70 70
71 # about file tracking 71 # about file tracking
558 558
559 def gettype(q): 559 def gettype(q):
560 return int(q & 0xFFFF) 560 return int(q & 0xFFFF)
561 561
562 562
563 class BaseIndexObject(object): 563 class BaseIndexObject:
564 # Can I be passed to an algorithme implemented in Rust ? 564 # Can I be passed to an algorithme implemented in Rust ?
565 rust_ext_compat = 0 565 rust_ext_compat = 0
566 # Format of an index entry according to Python's `struct` language 566 # Format of an index entry according to Python's `struct` language
567 index_format = revlog_constants.INDEX_ENTRY_V1 567 index_format = revlog_constants.INDEX_ENTRY_V1
568 # Size of a C unsigned long long int, platform independent 568 # Size of a C unsigned long long int, platform independent