X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fthreads.py;h=225f524651a9df3c4f1b22141066ca0631def2c9;hb=2ee1d8e1c70ce20728bc3faada389a4802636352;hp=9d305e23423418fe26a0c2bc9c2beea93692176e;hpb=76a2db3d7b92bc1a8be75f673dc384c46cf02fab;p=notmuch diff --git a/bindings/python/notmuch/threads.py b/bindings/python/notmuch/threads.py index 9d305e23..225f5246 100644 --- a/bindings/python/notmuch/threads.py +++ b/bindings/python/notmuch/threads.py @@ -20,11 +20,13 @@ Copyright 2010 Sebastian Spaeth ' from notmuch.globals import ( nmlib, Python3StringMixIn, - NullPointerError, - NotInitializedError, NotmuchThreadP, NotmuchThreadsP, ) +from .errors import ( + NullPointerError, + NotInitializedError, +) from .thread import Thread class Threads(Python3StringMixIn): @@ -170,7 +172,7 @@ class Threads(Python3StringMixIn): _destroy = nmlib.notmuch_threads_destroy _destroy.argtypes = [NotmuchThreadsP] - _destroy.argtypes = None + _destroy.restype = None def __del__(self): """Close and free the notmuch Threads"""