]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/directory.py
python: fix NULL pointer tests
[notmuch] / bindings / python / notmuch / directory.py
index 667d3a4b64986c4901d0b9f0e52f43334660e120..ae115f818be2c22395531e454dc51ab907405f3c 100644 (file)
@@ -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)