diff mercurial/changegroup.py @ 52668: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 d98b56a1d41c
children
line wrap: on
line diff
--- a/mercurial/changegroup.py	Sun Jan 05 22:12:02 2025 -0500
+++ b/mercurial/changegroup.py	Sun Jan 05 22:23:31 2025 -0500
@@ -828,7 +828,7 @@
         debug_info=None,
         delta_base_reuse_policy=None,
     ):
-        super(cg3unpacker, self)._unpackmanifests(
+        super()._unpackmanifests(
             repo,
             revmap,
             trp,
@@ -868,7 +868,7 @@
         return node, p1, p2, deltabase, cs, flags, protocol_flags
 
     def deltachunk(self, prevnode):
-        res = super(cg4unpacker, self).deltachunk(prevnode)
+        res = super().deltachunk(prevnode)
         if not res:
             return res