PEP 8 (I'm bored): mail.notmuchmail

This commit is contained in:
enkore 2014-10-14 16:47:19 +02:00
parent 2346d82ed8
commit 3b3b716307

View File

@ -20,10 +20,9 @@ class Notmuch(Backend):
("db_path", "Path to the directory of your notmuch database"),
)
db_path = None;
db_path = None
def init(self):
if not self.db_path:
defaultConfigFilename = os.path.expanduser("~/.notmuch-config")
config = configparser.RawConfigParser()
@ -32,8 +31,7 @@ class Notmuch(Backend):
successful = config.read([
os.environ.get("NOTMUCH_CONFIG", defaultConfigFilename),
defaultConfigFilename
]
)
])
self.db_path = config.get("database", "path")