diff tests/sshprotoext.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 13c004b54cbe
children
line wrap: on
line diff
--- a/tests/sshprotoext.py	Sun Jan 05 22:12:02 2025 -0500
+++ b/tests/sshprotoext.py	Sun Jan 05 22:23:31 2025 -0500
@@ -32,7 +32,7 @@
         for i in range(10):
             self._ui.fout.write(b'banner: line %d\n' % i)
 
-        super(bannerserver, self).serve_forever()
+        super().serve_forever()
 
 
 class prehelloserver(wireprotoserver.sshserver):
@@ -56,7 +56,7 @@
         rsp = wireprotov1server.dispatch(self._repo, proto, b'between')
         wireprotoserver._sshv1respondbytes(ui.fout, rsp.data)
 
-        super(prehelloserver, self).serve_forever()
+        super().serve_forever()
 
 
 def performhandshake(orig, ui, stdin, stdout, stderr):