X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessages.py;h=251fa3a3457f77ef42831925b7021264c4d9e3be;hb=162687a99e412098729d639ed7bc27f01372cb84;hp=20d3632955bb3808c4e9c32edca14c28d73c0e4e;hpb=69f077898a65c10453d08dd94bf4c94efc69b91b;p=notmuch diff --git a/bindings/python/notmuch/messages.py b/bindings/python/notmuch/messages.py index 20d36329..251fa3a3 100644 --- a/bindings/python/notmuch/messages.py +++ b/bindings/python/notmuch/messages.py @@ -14,18 +14,20 @@ for more details. You should have received a copy of the GNU General Public License along with notmuch. If not, see . -Copyright 2010 Sebastian Spaeth ' +Copyright 2010 Sebastian Spaeth Jesse Rosenthal """ from .globals import ( nmlib, - NullPointerError, - NotInitializedError, NotmuchTagsP, NotmuchMessageP, NotmuchMessagesP, ) +from .errors import ( + NullPointerError, + NotInitializedError, +) from .tag import Tags from .message import Message @@ -182,7 +184,7 @@ class Messages(object): def __del__(self): """Close and free the notmuch Messages""" - if self._msgs is not None: + if self._msgs: self._destroy(self._msgs) def format_messages(self, format, indent=0, entire_thread=False):