]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - bindings/python/notmuch/database.py
python: fix the creation of notmuch databases
[notmuch.git] / 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)