summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-21 18:40:28 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-21 18:40:28 -0300
commitab313aae749fd2c572ae2a7f965e37d744be1334 (patch)
treebf5a9222bf41861887caf43448b03b7b14f95bb8 /mail
parent24daa2bf8929e799890297fe30abbfd8a46016f9 (diff)
Fixed some PEP8 warnings on the messages file
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/imap/messages.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/src/leap/mail/imap/messages.py b/mail/src/leap/mail/imap/messages.py
index 11dcd8f9..4e8e1a3c 100644
--- a/mail/src/leap/mail/imap/messages.py
+++ b/mail/src/leap/mail/imap/messages.py
@@ -750,7 +750,7 @@ class MessageCollection(WithMsgFields, IndexedDB, MBoxParser):
:return: a dict with the template
:rtype: dict
"""
- if not _type in self.templates.keys():
+ if _type not in self.templates.keys():
raise TypeError("Improper type passed to _get_empty_doc")
return copy.deepcopy(self.templates[_type])
@@ -938,10 +938,10 @@ class MessageCollection(WithMsgFields, IndexedDB, MBoxParser):
# We can say the observer that we're done at this point, but
# before that we should make sure it has no serious consequences
# if we're issued, for instance, a fetch command right after...
- #self.reactor.callFromThread(observer.callback, uid)
+ # self.reactor.callFromThread(observer.callback, uid)
# if we did the notify, we need to invalidate the deferred
# so not to try to fire it twice.
- #observer = None
+ # observer = None
fd = self._populate_flags(flags, uid, chash, size, multi)
hd = self._populate_headr(msg, chash, subject, date)