X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdirectory.py;h=3b0a525dc9083e2c6bcb6c019fa729f42d389fd7;hb=bcccc2e1fe19003e28b6cd85d3f2b2beda40335f;hp=284cbdced126952587110f71d8e49d38d4bcd8be;hpb=fc4e5248d29cf7264481cbff82343eade5fcc2ca;p=notmuch diff --git a/bindings/python/notmuch/directory.py b/bindings/python/notmuch/directory.py index 284cbdce..3b0a525d 100644 --- a/bindings/python/notmuch/directory.py +++ b/bindings/python/notmuch/directory.py @@ -14,11 +14,11 @@ for more details. You should have received a copy of the GNU General Public License along with notmuch. If not, see . -Copyright 2010 Sebastian Spaeth ' +Copyright 2010 Sebastian Spaeth """ from ctypes import c_uint, c_long -from notmuch.globals import ( +from .globals import ( nmlib, NotmuchDirectoryP, NotmuchFilenamesP @@ -181,5 +181,5 @@ class Directory(object): def __del__(self): """Close and free the Directory""" - if self._dir_p is not None: + if self._dir_p: self._destroy(self._dir_p)