Mercurial > public > mercurial-scm > hg
diff tests/simplestorerepo.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 | ba8f03ad8906 |
children | e627cc25b6f3 |
line wrap: on
line diff
--- a/tests/simplestorerepo.py Sun Jan 05 22:12:02 2025 -0500 +++ b/tests/simplestorerepo.py Sun Jan 05 22:23:31 2025 -0500 @@ -669,7 +669,7 @@ class simplestore(store.encodedstore): def data_entries(self, undecodable=None): - for x in super(simplestore, self).data_entries(): + for x in super().data_entries(): yield x # Supplement with non-revlog files.