b.c.ObjectWithCleanups(object) : class documentation

Part of bzrlib.cleanup View In Hierarchy

Known subclasses: bzrlib.cleanup.OperationWithCleanups, bzrlib.tests.test_cleanup.SampleWithCleanups

A mixin for objects that hold a cleanup list.

Subclass or client code can call add_cleanup and then later cleanup_now.

Method __init__ Undocumented
Method add_cleanup Add a cleanup to run.
Method cleanup_now Undocumented
def __init__(self):
Undocumented
def add_cleanup(self, cleanup_func, *args, **kwargs):
Add a cleanup to run.

Cleanups may be added at any time. Cleanups will be executed in LIFO order.

def cleanup_now(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.