X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fquery.py;fp=bindings%2Fpython%2Fnotmuch%2Fquery.py;h=756e63b582a0ed6eeb06a131dfeb110e76215111;hp=27bc4df79a1e97d54e385daeeca06a32a3847ff8;hb=162687a99e412098729d639ed7bc27f01372cb84;hpb=09fdf2b283938da1cded87ec8621aabe917a8fa5 diff --git a/bindings/python/notmuch/query.py b/bindings/python/notmuch/query.py index 27bc4df7..756e63b5 100644 --- a/bindings/python/notmuch/query.py +++ b/bindings/python/notmuch/query.py @@ -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)