]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/threads.py
Merge tag '0.12_rc2'
[notmuch] / bindings / python / notmuch / threads.py
index 9d305e23423418fe26a0c2bc9c2beea93692176e..225f524651a9df3c4f1b22141066ca0631def2c9 100644 (file)
@@ -20,11 +20,13 @@ Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>'
 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"""