diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-02-22 21:01:24 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2012-02-22 21:14:35 +0100 |
commit | 92983dd14e3c9d767bb8ef6e9b85ef76b293cdd4 (patch) | |
tree | 7a36f8dc0f3043a373bf166e0a25e18dc79bbe7b | |
parent | e3fb62f59b7cf93c818f382a62c37eea2d1b4f74 (diff) |
python: avoid using a magic value for database mode in Database.__init__
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
-rw-r--r-- | bindings/python/notmuch/database.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 504bb88..c905395 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 |