Mercurial > public > mercurial-scm > hg
diff mercurial/thirdparty/cbor/cbor2/decoder.py @ 52641:9bd6854aab86
pyupgrade: convert to new style classes
These were likely missed when the bulk of the classes got this change back in
642e31cb55f0. These were rewritten using a hacked version of `pyupgrade` 3.19.1
that enabled only the `new_style_classes` fixer. See 24ee91ba9aa8 for details.
It's probably better to fix the thirdparty and contrib code upstream, but these
are small changes, like those made locally in the past here. I don't feel like
pulling down and testing potentially a lot of changes just to satisfy this
linter.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 05 Jan 2025 22:00:40 -0500 |
parents | 4bd73a955ab0 |
children |
line wrap: on
line diff