diff tests/drawdag.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 642e31cb55f0
children fcd7cb10623d
line wrap: on
line diff
--- a/tests/drawdag.py	Sun Jan 05 22:12:02 2025 -0500
+++ b/tests/drawdag.py	Sun Jan 05 22:23:31 2025 -0500
@@ -293,7 +293,7 @@
             'date': b'0 0',
             'extra': {b'branch': b'default'},
         }
-        super(simplecommitctx, self).__init__(repo, name, **opts)
+        super().__init__(repo, name, **opts)
         self._added = added
         self._parents = parentctxs
         while len(self._parents) < 2: