diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-15 12:02:25 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-15 12:02:25 +0000 |
commit | 1e9a81598674cf422f3fc42175022ffca9556bc3 (patch) | |
tree | d8724fa22ef3340be80a9b19b9cc7e97caf4e7c2 /alot | |
parent | 9df920388288b9023bb606d21f35abe67497416c (diff) |
pep8 fixes
Diffstat (limited to 'alot')
-rw-r--r-- | alot/db/errors.py | 2 | ||||
-rw-r--r-- | alot/db/thread.py | 4 | ||||
-rwxr-xr-x | alot/init.py | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/alot/db/errors.py b/alot/db/errors.py index 17ef219c..240e769b 100644 --- a/alot/db/errors.py +++ b/alot/db/errors.py @@ -15,5 +15,3 @@ class DatabaseLockedError(DatabaseError): class NonexistantObjectError(DatabaseError): """requested thread or message does not exist in the index""" pass - - diff --git a/alot/db/thread.py b/alot/db/thread.py index e94e719e..1207e583 100644 --- a/alot/db/thread.py +++ b/alot/db/thread.py @@ -8,8 +8,8 @@ class Thread(object): """ A wrapper around a notmuch mailthread (:class:`notmuch.database.Thread`) that ensures persistence of the thread: It can be safely read multiple - times, its manipulation is done via a :class:`alot.db.DBManager` and it - can directly provide contained messages as :class:`~alot.db.message.Message`. + times, its manipulation is done via a :class:`alot.db.DBManager` and it can + directly provide contained messages as :class:`~alot.db.message.Message`. """ def __init__(self, dbman, thread): diff --git a/alot/init.py b/alot/init.py index 182e7e87..be54901c 100755 --- a/alot/init.py +++ b/alot/init.py @@ -132,7 +132,8 @@ def main(): if args['config']: expanded_path = os.path.expanduser(args['config']) if not os.path.exists(expanded_path): - sys.exit('Explicitly given config file "%s" does not exist. Goodbye for now.' % expanded_path) + msg = 'Config file "%s" does not exist. Goodbye for now.' + sys.exit(msg % expanded_path) configfiles.insert(0, expanded_path) # locate notmuch config |