mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
python: avoid using a magic value for database mode in Database.__init__
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
parent
e3fb62f59b
commit
92983dd14e
1 changed files with 2 additions and 1 deletions
|
@ -122,7 +122,8 @@ class Database(object):
|
||||||
_create.argtypes = [c_char_p]
|
_create.argtypes = [c_char_p]
|
||||||
_create.restype = NotmuchDatabaseP
|
_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
|
"""If *path* is `None`, we will try to read a users notmuch
|
||||||
configuration and use his configured database. The location of the
|
configuration and use his configured database. The location of the
|
||||||
configuration file can be specified through the environment variable
|
configuration file can be specified through the environment variable
|
||||||
|
|
Loading…
Reference in a new issue