mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
python: Update Database.get_directory documentation
notmuch_database_get_directory no longer returns an error for read-only databases, so remove ReadOnlyDatabaseError from the list of get_directory exceptions.
This commit is contained in:
parent
3f3c446c40
commit
f1f1e39639
1 changed files with 0 additions and 3 deletions
|
@ -346,7 +346,6 @@ class Database(object):
|
||||||
|
|
||||||
def get_directory(self, path):
|
def get_directory(self, path):
|
||||||
"""Returns a :class:`Directory` of path,
|
"""Returns a :class:`Directory` of path,
|
||||||
(creating it if it does not exist(?))
|
|
||||||
|
|
||||||
:param path: An unicode string containing the path relative to the path
|
:param path: An unicode string containing the path relative to the path
|
||||||
of database (see :meth:`get_path`), or else should be an absolute
|
of database (see :meth:`get_path`), or else should be an absolute
|
||||||
|
@ -354,8 +353,6 @@ class Database(object):
|
||||||
:returns: :class:`Directory` or raises an exception.
|
:returns: :class:`Directory` or raises an exception.
|
||||||
:raises: :exc:`FileError` if path is not relative database or absolute
|
:raises: :exc:`FileError` if path is not relative database or absolute
|
||||||
with initial components same as database.
|
with initial components same as database.
|
||||||
:raises: :exc:`ReadOnlyDatabaseError` if the database has not been
|
|
||||||
opened in read-write mode
|
|
||||||
"""
|
"""
|
||||||
self._assert_db_is_initialized()
|
self._assert_db_is_initialized()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue