--- a/mercurial/bundle2.py Mon Feb 21 13:03:43 2022 -0700
+++ b/mercurial/bundle2.py Mon Feb 21 13:08:28 2022 -0700
@@ -251,7 +251,7 @@
return _decorator
-class unbundlerecords(object):
+class unbundlerecords:
"""keep record of what happens during and unbundle
New records are added using `records.add('cat', obj)`. Where 'cat' is a
@@ -299,7 +299,7 @@
__bool__ = __nonzero__
-class bundleoperation(object):
+class bundleoperation:
"""an object that represents a single bundling process
Its purpose is to carry unbundle-related objects and states.
@@ -379,7 +379,7 @@
return op
-class partiterator(object):
+class partiterator:
def __init__(self, repo, op, unbundler):
self.repo = repo
self.op = op
@@ -626,7 +626,7 @@
bundlepriority = [b'HG10GZ', b'HG10BZ', b'HG10UN']
-class bundle20(object):
+class bundle20:
"""represent an outgoing bundle2 container
Use the `addparam` method to add stream level parameter. and `newpart` to
@@ -750,7 +750,7 @@
return salvaged
-class unpackermixin(object):
+class unpackermixin:
"""A mixin to extract bytes and struct data from a stream"""
def __init__(self, fp):
@@ -983,7 +983,7 @@
unbundler._compressed = True
-class bundlepart(object):
+class bundlepart:
"""A bundle2 part contains application level payload
The part `type` is used to route the part to the application level
@@ -1273,7 +1273,7 @@
)
-class interruptoperation(object):
+class interruptoperation:
"""A limited operation to be use by part handler during interruption
It only have access to an ui object.