From 3b3b716307ce321d44d77ed0f874d8ee3ab185d4 Mon Sep 17 00:00:00 2001 From: enkore Date: Tue, 14 Oct 2014 16:47:19 +0200 Subject: [PATCH] PEP 8 (I'm bored): mail.notmuchmail --- i3pystatus/mail/notmuchmail.py | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/i3pystatus/mail/notmuchmail.py b/i3pystatus/mail/notmuchmail.py index 725b03f..00e99c0 100644 --- a/i3pystatus/mail/notmuchmail.py +++ b/i3pystatus/mail/notmuchmail.py @@ -17,25 +17,23 @@ class Notmuch(Backend): """ settings = ( - ("db_path","Path to the directory of your notmuch database"), - ) + ("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") + defaultConfigFilename = os.path.expanduser("~/.notmuch-config") config = configparser.RawConfigParser() - - # read tries to read and returns successfully read filenames - successful = config.read( [ - os.environ.get("NOTMUCH_CONFIG",defaultConfigFilename), - defaultConfigFilename - ] - ) - self.db_path = config.get("database","path") + # read tries to read and returns successfully read filenames + successful = config.read([ + os.environ.get("NOTMUCH_CONFIG", defaultConfigFilename), + defaultConfigFilename + ]) + + self.db_path = config.get("database", "path") self.db = notmuch.Database(self.db_path)