python: fix signature of two wrapped libnotmuch functions
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Fri, 16 Mar 2012 12:56:32 +0000 (13:56 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 18 Mar 2012 10:59:36 +0000 (07:59 -0300)
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/notmuch/directory.py
bindings/python/notmuch/threads.py

index 0c5e015e0e01feb9da330e08c2de951f54ed7797..284cbdced126952587110f71d8e49d38d4bcd8be 100644 (file)
@@ -177,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"""
index 690206ef5a9668b6e09ff1b052e7941e373dff75..225f524651a9df3c4f1b22141066ca0631def2c9 100644 (file)
@@ -172,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"""