def _enable_cleanup(func):
@functools.wraps(func)<EOL>def wrapper(*args, **kwargs):<EOL><INDENT>self = args[<NUM_LIT:0>]<EOL>result = func(*args, **kwargs)<EOL>self.cleanup(self)<EOL>return result<EOL><DEDENT>return wrapper<EOL>
Execute cleanup operation when the decorated function completed.