python/notmuch2: fix typo for ObjectDestroyedError

There is no functional change here, just a fix to a typo in the
docstrings.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
This commit is contained in:
Daniel Kahn Gillmor 2019-12-23 16:02:16 -05:00 committed by David Bremner
parent b5db6aa127
commit 34c5233894
3 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ Errors
All errors occuring due to errors from the underlying notmuch database
are subclasses of the :exc:`NotmuchError`. Due to memory management
it is possible to try and use an object after it has been freed. In
this case a :exc:`ObjectDestoryedError` will be raised.
this case a :exc:`ObjectDestroyedError` will be raised.
Memory Management
=================

View file

@ -342,7 +342,7 @@ class Database(base.NotmuchObject):
def default_indexopts(self):
"""Returns default index options for the database.
:raises ObjectDestoryedError: if used after destroyed.
:raises ObjectDestroyedError: if used after destroyed.
:returns: :class:`IndexOptions`.
"""
@ -770,7 +770,7 @@ class IndexOptions(base.NotmuchObject):
You can change this policy by assigning a new
:class:`DecryptionPolicy` to this property.
:raises ObjectDestoryedError: if used after destroyed.
:raises ObjectDestroyedError: if used after destroyed.
:returns: A :class:`DecryptionPolicy` enum instance.
"""

View file

@ -277,7 +277,7 @@ class TagsIter(base.NotmuchObject, collections.abc.Iterator):
:param errors: If using a codec, this is the error handler.
See :func:`str.decode` to which this is passed on.
:raises ObjectDestoryedError: if used after destroyed.
:raises ObjectDestroyedError: if used after destroyed.
"""
_tags_p = base.MemoryPointer()