python: fix the creation of notmuch databases

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>
This commit is contained in:
Justus Winter 2013-01-23 18:12:04 +01:00
parent 3d19e6f1fd
commit c8cb2beda7

View 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)