]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/filenames.py
python: fix NULL pointer tests
[notmuch] / bindings / python / notmuch / filenames.py
index d201ae2207a652958b0c1473ddc89c5124990800..a0b2956316fdd79781905157b7bc1ea9d82dbd88 100644 (file)
@@ -128,7 +128,7 @@ class Filenames(Python3StringMixIn):
 
     def __del__(self):
         """Close and free the notmuch filenames"""
-        if self._files_p is not None:
+        if self._files_p:
             self._destroy(self._files_p)
 
     def __len__(self):