Shorten self.infosep assignment
A more pythonic and less verbose way to do the same. Add a comment what the variable is all about. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
1ac9dc7fb4
commit
a43677a3e6
@ -68,11 +68,8 @@ class MaildirFolder(BaseFolder):
|
|||||||
self.wincompatible = self.config.getdefaultboolean(
|
self.wincompatible = self.config.getdefaultboolean(
|
||||||
"Account "+self.accountname, "maildir-windows-compatible", False)
|
"Account "+self.accountname, "maildir-windows-compatible", False)
|
||||||
|
|
||||||
if self.wincompatible == False:
|
self.infosep = '!' if self.wincompatible else ':'
|
||||||
self.infosep = ':'
|
"""infosep is the separator between maildir name and flag appendix"""
|
||||||
else:
|
|
||||||
self.infosep = '!'
|
|
||||||
|
|
||||||
self.flagmatchre = re.compile(self.infosep + '.*2,([A-Z]+)')
|
self.flagmatchre = re.compile(self.infosep + '.*2,([A-Z]+)')
|
||||||
#self.ui is set in BaseFolder.init()
|
#self.ui is set in BaseFolder.init()
|
||||||
# Cache the full folder path, as we use getfullname() very often
|
# Cache the full folder path, as we use getfullname() very often
|
||||||
|
Loading…
Reference in New Issue
Block a user