]> git.notmuchmail.org Git - notmuch/commitdiff
python: remove :returns: keywords from functions returning nothing
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 20 Feb 2012 23:15:59 +0000 (00:15 +0100)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 20 Feb 2012 23:15:59 +0000 (00:15 +0100)
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/notmuch/database.py
bindings/python/notmuch/message.py
bindings/python/notmuch/query.py

index 9f6b3800553abbf8b183ebf8c1b0398ee71f410c..d8413671ad5610938909540076042e602d8eac6e 100644 (file)
@@ -176,7 +176,6 @@ class Database(object):
 
         :param path: A directory in which we should create the database.
         :type path: str
-        :returns: Nothing
         :raises: :exc:`NotmuchError` in case of any failure
                     (possibly after printing an error message on stderr).
         """
@@ -200,7 +199,6 @@ class Database(object):
 
         :param status: Open the database in read-only or read-write mode
         :type status:  :attr:`MODE`
-        :returns: Nothing
         :raises: Raises :exc:`NotmuchError` in case of any failure
                     (possibly after printing an error message on stderr).
         """
@@ -699,7 +697,6 @@ class Directory(object):
         Retrieves a previously stored mtime for this directory.
 
         :param mtime: A (time_t) timestamp
-        :returns: Nothing on success, raising an exception on failure.
         :raises: :exc:`NotmuchError`:
 
                         :attr:`STATUS`.NOT_INITIALIZED
index ce7cb8853b34d1b8c25bc493672e287e86d4d0ef..9ebb53d5bf3a92f4110b774687aceea8ce22adcb 100644 (file)
@@ -513,7 +513,6 @@ class Message(Python3StringMixIn):
                      *Message.FLAG.MATCH*
         :param value: A bool indicating whether to set or unset the flag.
 
-        :returns: Nothing
         :raises: :exc:`NotInitializedError` if the message
               is not initialized.
         """
index 25b9e78045528464bd135f32f524f78a4c64a04b..15ed153e94e49cc4c8fa6d9f7d8ead0dc5052a72 100644 (file)
@@ -88,7 +88,6 @@ class Query(object):
         :type db: :class:`Database`
         :param querystr: The query string
         :type querystr: utf-8 encoded str or unicode
-        :returns: Nothing
         :raises:
             :exc:`NullPointerError` if the query creation failed
                 (e.g. too little memory).