Mercurial > public > mercurial-scm > hg
comparison hgext/git/gitlog.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 | 86920d1f7632 |
children | b61115f5d216 |
comparison
equal
deleted
inserted
replaced
52642:73ab542565e0 | 52643:5cc8deb96b48 |
---|---|
578 return gitmanifest.gittreemanifestctx(self.gitrepo, t) | 578 return gitmanifest.gittreemanifestctx(self.gitrepo, t) |
579 | 579 |
580 | 580 |
581 class filelog(baselog, repository.ifilestorage): | 581 class filelog(baselog, repository.ifilestorage): |
582 def __init__(self, gr, db, path): | 582 def __init__(self, gr, db, path): |
583 super(filelog, self).__init__(gr, db) | 583 super().__init__(gr, db) |
584 assert isinstance(path, bytes) | 584 assert isinstance(path, bytes) |
585 self.path = path | 585 self.path = path |
586 self.nullid = sha1nodeconstants.nullid | 586 self.nullid = sha1nodeconstants.nullid |
587 | 587 |
588 def read(self, node): | 588 def read(self, node): |