]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/query.py
python: fix NULL pointer tests
[notmuch] / bindings / python / notmuch / query.py
index 27bc4df79a1e97d54e385daeeca06a32a3847ff8..756e63b582a0ed6eeb06a131dfeb110e76215111 100644 (file)
@@ -203,5 +203,5 @@ class Query(object):
 
     def __del__(self):
         """Close and free the Query"""
-        if self._query is not None:
+        if self._query:
             self._destroy(self._query)