comparison mercurial/logcmdutil.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 f4733654f144
children e627cc25b6f3
comparison
equal deleted inserted replaced
52667:73ab542565e0 52668:5cc8deb96b48
631 def close(self): 631 def close(self):
632 if self._parts[b'docfooter']: 632 if self._parts[b'docfooter']:
633 if not self.footer: 633 if not self.footer:
634 self.footer = b"" 634 self.footer = b""
635 self.footer += self.t.render(self._parts[b'docfooter'], {}) 635 self.footer += self.t.render(self._parts[b'docfooter'], {})
636 return super(changesettemplater, self).close() 636 return super().close()
637 637
638 def _show(self, ctx, copies, props): 638 def _show(self, ctx, copies, props):
639 '''show a single changeset or file revision''' 639 '''show a single changeset or file revision'''
640 props = props.copy() 640 props = props.copy()
641 props[b'ctx'] = ctx 641 props[b'ctx'] = ctx