mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
python: Improve the docstring of Database.get_directory
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
parent
92983dd14e
commit
35ceaf496f
1 changed files with 2 additions and 4 deletions
|
@ -345,10 +345,8 @@ class Database(object):
|
|||
of database (see :meth:`get_path`), or else should be an absolute
|
||||
path with initial components that match the path of 'database'.
|
||||
:returns: :class:`Directory` or raises an exception.
|
||||
:raises:
|
||||
:exc:`NotmuchError` with :attr:`STATUS`.FILE_ERROR
|
||||
If path is not relative database or absolute with initial
|
||||
components same as database.
|
||||
:raises: :exc:`FileError` if path is not relative database or absolute
|
||||
with initial components same as database.
|
||||
"""
|
||||
self._assert_db_is_initialized()
|
||||
# sanity checking if path is valid, and make path absolute
|
||||
|
|
Loading…
Reference in a new issue