diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-05-24 13:14:33 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-24 14:01:09 +0200 |
commit | c8f3d99eab089d337e5fdcb8ff39efd6ab1aa5e9 (patch) | |
tree | f5e269b6d85d078e0ad43cfde1c36a56ecca0b0e /alot/db/message.py | |
parent | b1f6be9d1808406c94c5c033b50abb5f7517e82b (diff) |
Consistently use set/frozenset for tags.
Diffstat (limited to 'alot/db/message.py')
-rw-r--r-- | alot/db/message.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/alot/db/message.py b/alot/db/message.py index 02d5565b..61f95383 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -435,8 +435,8 @@ class Message: return self._email def get_tags(self): - """returns tags attached to this message as list of strings""" - return sorted(self._tags) + """returns tags attached to this message as set of strings""" + return self._tags def get_datestring(self): """ @@ -469,8 +469,8 @@ class Message: :class:`DBManager's <alot.db.DBManager>` write queue. You need to call :meth:`~alot.db.DBManager.flush` to write out. - :param tags: a list of tags to be added - :type tags: list of str + :param tags: a set of tags to be added + :type tags: set of str :param afterwards: callback that gets called after successful application of this tagging operation :type afterwards: callable @@ -498,8 +498,8 @@ class Message: :class:`DBManager's <alot.db.DBManager>` write queue. You need to call :meth:`~alot.db.DBManager.flush` to actually out. - :param tags: a list of tags to be added - :type tags: list of str + :param tags: a set of tags to be removed + :type tags: set of str :param afterwards: callback that gets called after successful application of this tagging operation :type afterwards: callable |