]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - bindings/python/notmuch/threads.py
python: fix NULL pointer tests
[notmuch.git] / bindings / python / notmuch / threads.py
index fb053f939de64ca42b968571ab56a68fc0e36ec3..a6441640605b13bf909d8a7e77c5cc609e98718a 100644 (file)
@@ -176,5 +176,5 @@ class Threads(Python3StringMixIn):
 
     def __del__(self):
         """Close and free the notmuch Threads"""
-        if self._threads is not None:
+        if self._threads:
             self._destroy(self._threads)