]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/tag.py
python: fix NULL pointer tests
[notmuch] / bindings / python / notmuch / tag.py
index 9b18160c3d895c501a4cba5a05f875a9b6b78149..e0598139a0d44f7499f4ebaf1d3f6fda3f0d41e2 100644 (file)
@@ -137,5 +137,5 @@ class Tags(Python3StringMixIn):
 
     def __del__(self):
         """Close and free the notmuch tags"""
-        if self._tags is not None:
+        if self._tags:
             self._destroy(self._tags)