python: fix the creation of notmuch databases
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Wed, 23 Jan 2013 17:12:04 +0000 (18:12 +0100)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Wed, 23 Jan 2013 17:12:04 +0000 (18:12 +0100)
Remove the superfluous mode argument given to notmuch_database_create
fixing the creation of notmuch databases using python code.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/notmuch/database.py

index fe692eb7ae4e38dceeb9aae24ca9b6cccb595a09..7ddf5cfe7d8d265980963ca09a1388b36717c851 100644 (file)
@@ -188,7 +188,7 @@ class Database(object):
                                        "already has an open one.")
 
         db = NotmuchDatabaseP()
-        status = Database._create(_str(path), Database.MODE.READ_WRITE, byref(db))
+        status = Database._create(_str(path), byref(db))
 
         if status != STATUS.SUCCESS:
             raise NotmuchError(status)