def remove_event(self, name):
        """Remove the name of the specified event variable from the driver's
        list of event variables to be set during execution.
        """
        try:
            self._events.remove(name)
        except __HOLE__:
            self.parent.raise_exception("Trying to remove event '%s' "
                                        "that is not in the driver." % name,
                                        AttributeError)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/hasevents.py/HasEvents.remove_event