def get_events(self):
        """Remove calls to add_event()."""
        disallowed = [ident(self.add_event.__func__), ident(ident)]
        self.frames = None

        return [item for item in self.events if item[2] not in disallowed]
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_sys_setprofile.py/HookWatcher.get_events/original