X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ffilename.py;h=469b6a5a97640a463d9d8625ff21078271107181;hp=51dae202d5d656963a977739ae053ef55b35adb5;hb=bf6039e34eca52ccf7fe1db51e1b5c843a9828f3;hpb=0bbfc5ce8be91b881d9542d86aceec7e6a716e86 diff --git a/bindings/python/notmuch/filename.py b/bindings/python/notmuch/filename.py index 51dae202..469b6a5a 100644 --- a/bindings/python/notmuch/filename.py +++ b/bindings/python/notmuch/filename.py @@ -18,7 +18,7 @@ Copyright 2010 Sebastian Spaeth ' """ from ctypes import c_char_p from notmuch.globals import (nmlib, STATUS, NotmuchError, - NotmuchFilenamesP, NotmuchMessageP, _str, Python3StringMixIn) + NotmuchFilenamesP, NotmuchMessageP, Python3StringMixIn) class Filenames(Python3StringMixIn): @@ -69,7 +69,7 @@ class Filenames(Python3StringMixIn): reference to it, so we can automatically delete the db object once all derived objects are dead. """ - if files_p is None: + if not files_p: raise NotmuchError(STATUS.NULL_POINTER) self._files = files_p