Mercurial > hg
comparison hgext/convert/cvsps.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 | d44e3c45f0e4 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
24 procutil, | 24 procutil, |
25 stringutil, | 25 stringutil, |
26 ) | 26 ) |
27 | 27 |
28 | 28 |
29 class logentry(object): | 29 class logentry: |
30 """Class logentry has the following attributes: | 30 """Class logentry has the following attributes: |
31 .author - author name as CVS knows it | 31 .author - author name as CVS knows it |
32 .branch - name of branch this revision is on | 32 .branch - name of branch this revision is on |
33 .branches - revision tuple of branches starting at this revision | 33 .branches - revision tuple of branches starting at this revision |
34 .comment - commit message | 34 .comment - commit message |
575 hook.hook(ui, None, b"cvslog", True, log=log) | 575 hook.hook(ui, None, b"cvslog", True, log=log) |
576 | 576 |
577 return log | 577 return log |
578 | 578 |
579 | 579 |
580 class changeset(object): | 580 class changeset: |
581 """Class changeset has the following attributes: | 581 """Class changeset has the following attributes: |
582 .id - integer identifying this changeset (list index) | 582 .id - integer identifying this changeset (list index) |
583 .author - author name as CVS knows it | 583 .author - author name as CVS knows it |
584 .branch - name of branch this changeset is on, or None | 584 .branch - name of branch this changeset is on, or None |
585 .comment - commit message | 585 .comment - commit message |