]> git.notmuchmail.org Git - notmuch/commitdiff
python: deprecate Messages.{format,print}_messages
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Thu, 17 May 2012 17:06:57 +0000 (19:06 +0200)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Thu, 17 May 2012 17:10:28 +0000 (19:10 +0200)
This code adds functionality at the python level that is unlikely to
be useful for anyone. Furthermore the python bindings strive to be a
thin wrapper around libnotmuch, so this code will be removed in
notmuch 0.15.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/notmuch/messages.py

index aee4a773b5666253b2b33fe4eed6d62529d64f06..e83455b96aa2410bb8fed74f83d183f3e596cc7b 100644 (file)
@@ -199,6 +199,13 @@ class Messages(object):
         :param entire_thread: A bool, indicating whether we want to output
                        whole threads or only the matching messages.
         :return: a list of lines
+
+        .. deprecated:: 0.14
+                        This code adds functionality at the python
+                        level that is unlikely to be useful for
+                        anyone. Furthermore the python bindings strive
+                        to be a thin wrapper around libnotmuch, so
+                        this code will be removed in notmuch 0.15.
         """
         result = list()
 
@@ -255,6 +262,13 @@ class Messages(object):
         :param indent: A number indicating the reply depth of these messages.
         :param entire_thread: A bool, indicating whether we want to output
                        whole threads or only the matching messages.
+
+        .. deprecated:: 0.14
+                        This code adds functionality at the python
+                        level that is unlikely to be useful for
+                        anyone. Furthermore the python bindings strive
+                        to be a thin wrapper around libnotmuch, so
+                        this code will be removed in notmuch 0.15.
         """
         handle.write(''.join(self.format_messages(format, indent, entire_thread)))