X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fthreads.py;h=fb053f939de64ca42b968571ab56a68fc0e36ec3;hb=1f08664a6b8f7cba63f63855833f877b66bbbe05;hp=9d305e23423418fe26a0c2bc9c2beea93692176e;hpb=76a2db3d7b92bc1a8be75f673dc384c46cf02fab;p=obsolete%2Fnotmuch-old diff --git a/bindings/python/notmuch/threads.py b/bindings/python/notmuch/threads.py index 9d305e23..fb053f93 100644 --- a/bindings/python/notmuch/threads.py +++ b/bindings/python/notmuch/threads.py @@ -14,17 +14,19 @@ 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 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"""