Mercurial > public > mercurial-scm > hg
comparison mercurial/mergestate.py @ 52643:5cc8deb96b48
pyupgrade: modernize calls to superclass methods
This is the `legacy` fixer in `pyupgrade`, with the loop yielding the offset of
`yield` statements commented out.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 05 Jan 2025 22:23:31 -0500 |
parents | 09a54892b7ee |
children |
comparison
equal
deleted
inserted
replaced
52642:73ab542565e0 | 52643:5cc8deb96b48 |
---|---|
766 shutil.rmtree(self._repo.vfs.join(b'merge'), True) | 766 shutil.rmtree(self._repo.vfs.join(b'merge'), True) |
767 | 767 |
768 | 768 |
769 class memmergestate(_mergestate_base): | 769 class memmergestate(_mergestate_base): |
770 def __init__(self, repo): | 770 def __init__(self, repo): |
771 super(memmergestate, self).__init__(repo) | 771 super().__init__(repo) |
772 self._backups = {} | 772 self._backups = {} |
773 | 773 |
774 def _make_backup(self, fctx, localkey): | 774 def _make_backup(self, fctx, localkey): |
775 self._backups[localkey] = fctx.data() | 775 self._backups[localkey] = fctx.data() |
776 | 776 |