X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdirectory.py;h=284cbdced126952587110f71d8e49d38d4bcd8be;hb=c302bfa2f63fc1e59df6f842fe65d4d6ea258a33;hp=b679aa293dc21006a06102e612e2cbca631ceb19;hpb=df0e1cf7884f93bbbf70786d0bffc45824ae01c1;p=notmuch diff --git a/bindings/python/notmuch/directory.py b/bindings/python/notmuch/directory.py index b679aa29..284cbdce 100644 --- a/bindings/python/notmuch/directory.py +++ b/bindings/python/notmuch/directory.py @@ -20,11 +20,13 @@ Copyright 2010 Sebastian Spaeth ' from ctypes import c_uint, c_long from notmuch.globals import ( nmlib, + NotmuchDirectoryP, + NotmuchFilenamesP +) +from .errors import ( STATUS, NotmuchError, NotInitializedError, - NotmuchDirectoryP, - NotmuchFilenamesP ) from .filenames import Filenames @@ -175,7 +177,7 @@ class Directory(object): _destroy = nmlib.notmuch_directory_destroy _destroy.argtypes = [NotmuchDirectoryP] - _destroy.argtypes = None + _destroy.restype = None def __del__(self): """Close and free the Directory"""