Mercurial > hg
comparison mercurial/logcmdutil.py @ 48946:642e31cb55f0
py3: use class X: instead of class X(object):
The inheritance from object is implied in Python 3. So this should
be equivalent.
This change was generated via an automated search and replace. So there
may have been some accidental changes.
Differential Revision: https://phab.mercurial-scm.org/D12352
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 13:08:28 -0700 |
parents | f254fc73d956 |
children | eb8aed493a56 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
225 fp=fp, | 225 fp=fp, |
226 prefix=subprefix, | 226 prefix=subprefix, |
227 ) | 227 ) |
228 | 228 |
229 | 229 |
230 class changesetdiffer(object): | 230 class changesetdiffer: |
231 """Generate diff of changeset with pre-configured filtering functions""" | 231 """Generate diff of changeset with pre-configured filtering functions""" |
232 | 232 |
233 def _makefilematcher(self, ctx): | 233 def _makefilematcher(self, ctx): |
234 return scmutil.matchall(ctx.repo()) | 234 return scmutil.matchall(ctx.repo()) |
235 | 235 |
259 for instability in ctx.instabilities(): | 259 for instability in ctx.instabilities(): |
260 labels.append(b'instability.%s' % instability) | 260 labels.append(b'instability.%s' % instability) |
261 return b' '.join(labels) | 261 return b' '.join(labels) |
262 | 262 |
263 | 263 |
264 class changesetprinter(object): | 264 class changesetprinter: |
265 '''show changeset information when templating not requested.''' | 265 '''show changeset information when templating not requested.''' |
266 | 266 |
267 def __init__(self, ui, repo, differ=None, diffopts=None, buffered=False): | 267 def __init__(self, ui, repo, differ=None, diffopts=None, buffered=False): |
268 self.ui = ui | 268 self.ui = ui |
269 self.repo = repo | 269 self.repo = repo |
704 | 704 |
705 return changesettemplater(ui, repo, spec, *postargs) | 705 return changesettemplater(ui, repo, spec, *postargs) |
706 | 706 |
707 | 707 |
708 @attr.s | 708 @attr.s |
709 class walkopts(object): | 709 class walkopts: |
710 """Options to configure a set of revisions and file matcher factory | 710 """Options to configure a set of revisions and file matcher factory |
711 to scan revision/file history | 711 to scan revision/file history |
712 """ | 712 """ |
713 | 713 |
714 # raw command-line parameters, which a matcher will be built from | 714 # raw command-line parameters, which a matcher will be built from |