Mercurial > public > mercurial-scm > hg
diff mercurial/dirstateutils/timestamp.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 | b332ae615714 |
children |
line wrap: on
line diff
--- a/mercurial/dirstateutils/timestamp.py Sun Jan 05 22:12:02 2025 -0500 +++ b/mercurial/dirstateutils/timestamp.py Sun Jan 05 22:23:31 2025 -0500 @@ -38,7 +38,7 @@ def __new__(cls, value): truncated_seconds, subsec_nanos, second_ambiguous = value value = (truncated_seconds & rangemask, subsec_nanos, second_ambiguous) - return super(timestamp, cls).__new__(cls, value) + return super().__new__(cls, value) def __eq__(self, other): raise error.ProgrammingError(