Mercurial > public > mercurial-scm > hg-stable
diff mercurial/utils/cborutil.py @ 49037: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 | bce8f66d3045 |
children | f4733654f144 |
line wrap: on
line diff
--- a/mercurial/utils/cborutil.py Mon Feb 21 13:03:43 2022 -0700 +++ b/mercurial/utils/cborutil.py Mon Feb 21 13:08:28 2022 -0700 @@ -483,7 +483,7 @@ return self -class sansiodecoder(object): +class sansiodecoder: """A CBOR decoder that doesn't perform its own I/O. To use, construct an instance and feed it segments containing @@ -976,7 +976,7 @@ return l -class bufferingdecoder(object): +class bufferingdecoder: """A CBOR decoder that buffers undecoded input. This is a glorified wrapper around ``sansiodecoder`` that adds a buffering