aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/filenames.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/notmuch/filenames.py')
-rw-r--r--bindings/python/notmuch/filenames.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/notmuch/filenames.py b/bindings/python/notmuch/filenames.py
index d201ae22..a0b29563 100644
--- a/bindings/python/notmuch/filenames.py
+++ b/bindings/python/notmuch/filenames.py
@@ -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):