Reformat offlineimap/folder/Gmail.py

Add some spaces, remove lines,... now format is better (lintian).
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-29 19:41:19 +02:00
parent 9ebdbe47ee
commit af18230a2a

View File

@ -60,7 +60,6 @@ class GmailFolder(IMAPFolder):
ignorelabels = self.repository.account.getconf('ignorelabels', '') ignorelabels = self.repository.account.getconf('ignorelabels', '')
self.ignorelabels = set([l for l in re.split(r'\s*,\s*', ignorelabels) if len(l)]) self.ignorelabels = set([l for l in re.split(r'\s*,\s*', ignorelabels) if len(l)])
def getmessage(self, uid): def getmessage(self, uid):
"""Retrieve message with UID from the IMAP server (incl body). Also """Retrieve message with UID from the IMAP server (incl body). Also
gets Gmail labels and embeds them into the message. gets Gmail labels and embeds them into the message.
@ -111,7 +110,6 @@ class GmailFolder(IMAPFolder):
def msglist_item_initializer(self, uid): def msglist_item_initializer(self, uid):
return {'uid': uid, 'flags': set(), 'labels': set(), 'time': 0} return {'uid': uid, 'flags': set(), 'labels': set(), 'time': 0}
# TODO: merge this code with the parent's cachemessagelist: # TODO: merge this code with the parent's cachemessagelist:
# TODO: they have too much common logics. # TODO: they have too much common logics.
def cachemessagelist(self, min_date=None, min_uid=None): def cachemessagelist(self, min_date=None, min_uid=None):