X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdatabase.py;h=c905395e74345b6a7c863571d1ef19e853084683;hp=504bb8804223fe94a502f9078eeee5dcaff01dae;hb=92983dd14e3c9d767bb8ef6e9b85ef76b293cdd4;hpb=e3fb62f59b7cf93c818f382a62c37eea2d1b4f74 diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 504bb880..c905395e 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -122,7 +122,8 @@ class Database(object): _create.argtypes = [c_char_p] _create.restype = NotmuchDatabaseP - def __init__(self, path=None, create=False, mode=0): + def __init__(self, path = None, create = False, + mode = MODE.READ_ONLY): """If *path* is `None`, we will try to read a users notmuch configuration and use his configured database. The location of the configuration file can be specified through the environment variable