(self, signal_tokens)
Remove action duplicates from a list of signal tokens.

        Duplicate actions are possible because the same action may be signalled
        at different levels of the hierarchy.  If it happens, we arbitrarily
        choose one of the duplicates.

        This method refreshes signals stored internally from the list of input
        tokens.

        Args:
            signal_tokens: The signal tokens to dedup.
Remove action duplicates from a list of signal tokens.
Remove action duplicates from a list of signal tokens .
def _dedup_actions(self, signal_tokens):
        """Remove action duplicates from a list of signal tokens.

        Duplicate actions are possible because the same action may be signalled
        at different levels of the hierarchy.  If it happens, we arbitrarily
        choose one of the duplicates.

        This method refreshes signals stored internally from the list of input
        tokens.

        Args:
            signal_tokens: The signal tokens to dedup.
        """
        self._signals = {}
        for signal_token in signal_tokens:
            signal = pickle.loads(signal_token.data)
            self._signals[signal.action] = signal
def _dedup_actions ( self , signal_tokens ) : self . _signals = { } for signal_token in signal_tokens : signal = pickle . loads ( signal_token . data ) self . _signals [ signal . action ] = signal