X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdirectory.py;h=ae115f818be2c22395531e454dc51ab907405f3c;hb=7bf5be75ae8e3c2d4e8c06bba8b44f4fd495349b;hp=667d3a4b64986c4901d0b9f0e52f43334660e120;hpb=1f08664a6b8f7cba63f63855833f877b66bbbe05;p=notmuch diff --git a/bindings/python/notmuch/directory.py b/bindings/python/notmuch/directory.py index 667d3a4b..ae115f81 100644 --- a/bindings/python/notmuch/directory.py +++ b/bindings/python/notmuch/directory.py @@ -181,5 +181,5 @@ class Directory(object): def __del__(self): """Close and free the Directory""" - if self._dir_p is not None: + if self._dir_p: self._destroy(self._dir_p)