def list_available_events(self):
        """Return a list of all available events in the driver's workflow."""

        events = []
        for comp in self.parent.workflow.__iter__():

            tset1 = set(comp._alltraits(events=True))
            tset2 = set(comp._alltraits(events=False))
            event_set = tset1.difference(tset2)
            # Remove the Enthought events common to all has_traits objects
            event_set.remove('trait_added')
            event_set.remove('trait_modified')

            for item in event_set:
                name = '%s.%s' % (comp.name, item)
                if self._events not in name:
                    events.append(name)

        return events
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/hasevents.py/HasEvents.list_available_events/swapped operands of `not in`