Prune trailing whitespaces from code and documentation

They are redundant in all pruned cases and sometimes even create some
problems, e.g., when one tries to jump through paragraphs in vi.

Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
Eygene Ryabinkin
2013-07-21 23:00:23 +04:00
parent e8c40a9285
commit 41cb0f577f
25 changed files with 60 additions and 62 deletions

View File

@ -116,7 +116,7 @@ class BaseRepository(CustomConfig.ConfigHelperMixin, object):
def getlocaleval(self):
return self.account.getlocaleval()
def getfolders(self):
"""Returns a list of ALL folders on this server."""
return []

View File

@ -28,7 +28,7 @@ class GmailRepository(IMAPRepository):
HOSTNAME = "imap.gmail.com"
# Gmail IMAP server port
PORT = 993
def __init__(self, reposname, account):
"""Initialize a GmailRepository object."""
# Enforce SSL usage

View File

@ -362,7 +362,7 @@ class IMAPRepository(BaseRepository):
OfflineImapError.ERROR.FOLDER)
finally:
self.imapserver.releaseconnection(imapobj)
class MappedIMAPRepository(IMAPRepository):
def getfoldertype(self):
return MappedIMAPFolder

View File

@ -91,7 +91,7 @@ class LocalStatusRepository(BaseRepository):
return folder
def getfolders(self):
"""Returns a list of all cached folders.
"""Returns a list of all cached folders.
Does nothing for this backend. We mangle the folder file names
(see getfolderfilename) so we can not derive folder names from

View File

@ -85,7 +85,7 @@ class MaildirRepository(BaseRepository):
if self.account.dryrun:
return
full_path = os.path.abspath(os.path.join(self.root, foldername))
# sanity tests
if self.getsep() == '/':
for component in foldername.split('/'):