comparison mercurial/cffi/osutil.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 8009a89bc18b
comparison
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
31 attrkinds[lib.VBLK] = statmod.S_IFBLK 31 attrkinds[lib.VBLK] = statmod.S_IFBLK
32 attrkinds[lib.VCHR] = statmod.S_IFCHR 32 attrkinds[lib.VCHR] = statmod.S_IFCHR
33 attrkinds[lib.VFIFO] = statmod.S_IFIFO 33 attrkinds[lib.VFIFO] = statmod.S_IFIFO
34 attrkinds[lib.VSOCK] = statmod.S_IFSOCK 34 attrkinds[lib.VSOCK] = statmod.S_IFSOCK
35 35
36 class stat_res(object): 36 class stat_res:
37 def __init__(self, st_mode, st_mtime, st_size): 37 def __init__(self, st_mode, st_mtime, st_size):
38 self.st_mode = st_mode 38 self.st_mode = st_mode
39 self.st_mtime = st_mtime 39 self.st_mtime = st_mtime
40 self.st_size = st_size 40 self.st_size = st_size
41 41