Mercurial > hg
comparison mercurial/posix.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 | a2c59b361e0f |
children | ee4537e365c8 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
662 child process under Windows, unneeded on other systems. | 662 child process under Windows, unneeded on other systems. |
663 """ | 663 """ |
664 pass | 664 pass |
665 | 665 |
666 | 666 |
667 class cachestat(object): | 667 class cachestat: |
668 def __init__(self, path): | 668 def __init__(self, path): |
669 self.stat = os.stat(path) | 669 self.stat = os.stat(path) |
670 | 670 |
671 def cacheable(self): | 671 def cacheable(self): |
672 return bool(self.stat.st_ino) | 672 return bool(self.stat.st_ino) |