Mercurial > hg
comparison mercurial/store.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 | fd5b8e696b75 |
children | d44e3c45f0e4 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
453 FILETYPE_FILELOG_MAIN = FILEFLAGS_FILELOG | FILEFLAGS_REVLOG_MAIN | 453 FILETYPE_FILELOG_MAIN = FILEFLAGS_FILELOG | FILEFLAGS_REVLOG_MAIN |
454 FILETYPE_FILELOG_OTHER = FILEFLAGS_FILELOG | FILEFLAGS_REVLOG_OTHER | 454 FILETYPE_FILELOG_OTHER = FILEFLAGS_FILELOG | FILEFLAGS_REVLOG_OTHER |
455 FILETYPE_OTHER = FILEFLAGS_OTHER | 455 FILETYPE_OTHER = FILEFLAGS_OTHER |
456 | 456 |
457 | 457 |
458 class basicstore(object): | 458 class basicstore: |
459 '''base class for local repository stores''' | 459 '''base class for local repository stores''' |
460 | 460 |
461 def __init__(self, path, vfstype): | 461 def __init__(self, path, vfstype): |
462 vfs = vfstype(path) | 462 vfs = vfstype(path) |
463 self.path = vfs.base | 463 self.path = vfs.base |
599 | 599 |
600 def copylist(self): | 600 def copylist(self): |
601 return [b'requires', b'00changelog.i'] + [b'store/' + f for f in _data] | 601 return [b'requires', b'00changelog.i'] + [b'store/' + f for f in _data] |
602 | 602 |
603 | 603 |
604 class fncache(object): | 604 class fncache: |
605 # the filename used to be partially encoded | 605 # the filename used to be partially encoded |
606 # hence the encodedir/decodedir dance | 606 # hence the encodedir/decodedir dance |
607 def __init__(self, vfs): | 607 def __init__(self, vfs): |
608 self.vfs = vfs | 608 self.vfs = vfs |
609 self.entries = None | 609 self.entries = None |