(self, sequence)
Add sequence to list of sequences including the message.
Add sequence to list of sequences including the message.
Add sequence to list of sequences including the message .
def add_sequence(self, sequence):
        """Add sequence to list of sequences including the message."""
        if isinstance(sequence, str):
            if not sequence in self._sequences:
                self._sequences.append(sequence)
        else:
            raise TypeError('sequence must be a string: %s' % type(sequence))
def add_sequence ( self , sequence ) : if isinstance ( sequence , str ) : if not sequence in self . _sequences : self . _sequences . append ( sequence ) else : raise TypeError ( 'sequence must be a string: %s' % type ( sequence ) )