(self)
return list(labels)
Return a list of user-defined labels in the mailbox.
Return a list of user-defined labels in the mailbox.
Return a list of user - defined labels in the mailbox .
def get_labels(self):
        """Return a list of user-defined labels in the mailbox."""
        self._lookup()
        labels = set()
        for label_list in self._labels.values():
            labels.update(label_list)
        labels.difference_update(self._special_labels)
        return list(labels)
def get_labels ( self ) : self . _lookup ( ) labels = set ( ) for label_list in self . _labels . values ( ) : labels . update ( label_list ) labels . difference_update ( self . _special_labels ) return list ( labels )