folder/Base.py Removed extra parenthesis

This patch removes these extra characteres.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 12:40:28 +02:00
parent d4e9833279
commit 56299086e2

View File

@ -26,7 +26,7 @@ from offlineimap.error import OfflineImapError
import offlineimap.accounts import offlineimap.accounts
class BaseFolder(): class BaseFolder:
__hash__ = None __hash__ = None
def __init__(self, name, repository): def __init__(self, name, repository):
@ -751,7 +751,7 @@ class BaseFolder():
if type(header_list) != type([]): if type(header_list) != type([]):
header_list = [header_list] header_list = [header_list]
self.ui.debug('', 'deletemessageheaders: called to delete %s' % (header_list)) self.ui.debug('', 'deletemessageheaders: called to delete %s' % header_list)
if not len(header_list): if not len(header_list):
return content return content
@ -857,7 +857,7 @@ class BaseFolder():
raise OfflineImapError("Trying to save msg (uid %d) on folder " raise OfflineImapError("Trying to save msg (uid %d) on folder "
"%s returned invalid uid %d" % (uid, dstfolder.getvisiblename(), "%s returned invalid uid %d" % (uid, dstfolder.getvisiblename(),
new_uid), OfflineImapError.ERROR.MESSAGE) new_uid), OfflineImapError.ERROR.MESSAGE)
except (KeyboardInterrupt): # Bubble up CTRL-C. except KeyboardInterrupt: # Bubble up CTRL-C.
raise raise
except OfflineImapError as e: except OfflineImapError as e:
if e.severity > OfflineImapError.ERROR.MESSAGE: if e.severity > OfflineImapError.ERROR.MESSAGE:
@ -998,7 +998,7 @@ class BaseFolder():
selfkeywords &= knownkeywords selfkeywords &= knownkeywords
self.ui.warn("Unknown keywords skipped: %s\n" self.ui.warn("Unknown keywords skipped: %s\n"
"You may want to change your configuration to include " "You may want to change your configuration to include "
"those\n" % (skipped_keywords)) "those\n" % skipped_keywords)
keywordletterset = set([keywordmap[keyw] for keyw in selfkeywords]) keywordletterset = set([keywordmap[keyw] for keyw in selfkeywords])