diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-11 18:58:56 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-11 18:58:56 +0000 |
commit | 133c5dc2cbfd5548e536dc8abba443c9b63c501e (patch) | |
tree | 493b9efd8f99b6f478577e1c4ce268cb4c0bb594 | |
parent | 858150d88011af09bac9b0c7cb2c45190aa8574f (diff) |
pep8 fixes
-rw-r--r-- | alot/db/__init__.py | 4 | ||||
-rw-r--r-- | alot/db/message.py | 1 | ||||
-rw-r--r-- | alot/db/utils.py | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/alot/db/__init__.py b/alot/db/__init__.py index 28c32c42..ca1f9b0b 100644 --- a/alot/db/__init__.py +++ b/alot/db/__init__.py @@ -63,7 +63,7 @@ class DBManager(object): You are responsible to retry flushing at a later time if you want to ensure that the cached changes are applied to the database. - :exception: :exc:`errors.DatabaseROError` if db is opened in read-only mode + :exception: :exc:`errors.DatabaseROError` if db is opened read-only :exception: :exc:`errors.DatabaseLockedError` if db is locked """ if self.ro: @@ -129,7 +129,7 @@ class DBManager(object): # end transaction and reinsert queue item on error if db.end_atomic() != notmuch.STATUS.SUCCESS: - raise errors.DatabaseError('fail-status from end_atomic') + raise errors.DatabaseError('end_atomic failed') # call post-callback if callable(afterwards): diff --git a/alot/db/message.py b/alot/db/message.py index d0a361c9..38c7a2ec 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -10,6 +10,7 @@ from alot.settings import settings from utils import extract_headers, extract_body from attachment import Attachment + class Message(object): """ a persistent notmuch message object. diff --git a/alot/db/utils.py b/alot/db/utils.py index 4e8ab904..9a0dc449 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -14,7 +14,6 @@ from alot.helper import string_sanitize from alot.helper import string_decode - def extract_headers(mail, headers=None): """ returns subset of this messages headers as human-readable format: |