def events(): rec = Recorder() rec.events().clear() rec.enabled = True yield rec.events() rec.enabled = False rec.events().clear()
def events(): """Enables appmap recording and allows examining events.""" rec = Recorder() rec.events.clear() rec.enabled = True yield rec.events rec.enabled = False rec.events.clear()