diff tests/flagprocessorext.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 6000f5b25c9b
children f19a3f1437f3
line wrap: on
line diff
--- a/tests/flagprocessorext.py	Sun Jan 05 22:12:02 2025 -0500
+++ b/tests/flagprocessorext.py	Sun Jan 05 22:23:31 2025 -0500
@@ -96,7 +96,7 @@
             if b'[FAIL]' in text:
                 flags |= REVIDX_FAIL
 
-            return super(wrappedfile, self).addrevision(
+            return super().addrevision(
                 text,
                 transaction,
                 link,
@@ -113,7 +113,7 @@
 def reposetup(ui, repo):
     class wrappingflagprocessorrepo(repo.__class__):
         def file(self, f):
-            orig = super(wrappingflagprocessorrepo, self).file(f)
+            orig = super().file(f)
             makewrappedfile(orig)
             return orig