comparison tests/testlib/ext-phase-report.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 0e11e532c958
children
comparison
equal deleted inserted replaced
52642:73ab542565e0 52643:5cc8deb96b48
16 % (rev, move[0], move[1]) 16 % (rev, move[0], move[1])
17 ) 17 )
18 18
19 class reportphaserepo(repo.__class__): 19 class reportphaserepo(repo.__class__):
20 def transaction(self, *args, **kwargs): 20 def transaction(self, *args, **kwargs):
21 tr = super(reportphaserepo, self).transaction(*args, **kwargs) 21 tr = super().transaction(*args, **kwargs)
22 tr.addpostclose(b'report-phase', reportphasemove) 22 tr.addpostclose(b'report-phase', reportphasemove)
23 return tr 23 return tr
24 24
25 repo.__class__ = reportphaserepo 25 repo.__class__ = reportphaserepo