diff mercurial/wireprototypes.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 e08c878b5571
children
line wrap: on
line diff
--- a/mercurial/wireprototypes.py	Sun Jan 05 22:12:02 2025 -0500
+++ b/mercurial/wireprototypes.py	Sun Jan 05 22:23:31 2025 -0500
@@ -346,7 +346,7 @@
                 b'or 2-tuples'
             )
 
-        return super(commanddict, self).__setitem__(k, v)
+        return super().__setitem__(k, v)
 
     def commandavailable(self, command, proto):
         """Determine if a command is available for the requested protocol."""