Add label to list of labels on the message.
(self, label)
| 1842 | self._labels = list(labels) |
| 1843 | |
| 1844 | def add_label(self, label): |
| 1845 | """Add label to list of labels on the message.""" |
| 1846 | if isinstance(label, str): |
| 1847 | if label not in self._labels: |
| 1848 | self._labels.append(label) |
| 1849 | else: |
| 1850 | raise TypeError('label must be a string: %s' % type(label)) |
| 1851 | |
| 1852 | def remove_label(self, label): |
| 1853 | """Remove label from the list of labels on the message.""" |
no test coverage detected