From b64430e03527a1b4be794f4b74283e442c811b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sat, 29 Aug 2020 19:48:41 +0200 Subject: [PATCH] Reformat offlineimap/repository/__init__.py Add some spaces, remove lines,... now format is better (lintian). --- offlineimap/repository/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/offlineimap/repository/__init__.py b/offlineimap/repository/__init__.py index ddce25d..32ed9ed 100644 --- a/offlineimap/repository/__init__.py +++ b/offlineimap/repository/__init__.py @@ -19,7 +19,7 @@ from sys import exc_info try: from configparser import NoSectionError -except ImportError: #python2 +except ImportError: # python2 from configparser import NoSectionError from offlineimap.repository.IMAP import IMAPRepository, MappedIMAPRepository @@ -44,13 +44,13 @@ class Repository(object): name = account.getconf('remoterepository') # We don't support Maildirs on the remote side. typemap = {'IMAP': IMAPRepository, - 'Gmail': GmailRepository} + 'Gmail': GmailRepository} elif reqtype == 'local': name = account.getconf('localrepository') typemap = {'IMAP': MappedIMAPRepository, - 'Maildir': MaildirRepository, - 'GmailMaildir': GmailMaildirRepository} + 'Maildir': MaildirRepository, + 'GmailMaildir': GmailMaildirRepository} elif reqtype == 'status': # create and return a LocalStatusRepository. @@ -75,8 +75,8 @@ class Repository(object): try: repo = typemap[repostype] except KeyError: - errstr = "'%s' repository not supported for '%s' repositories."% \ - (repostype, reqtype) + errstr = "'%s' repository not supported for '%s' repositories." % \ + (repostype, reqtype) six.reraise(OfflineImapError, OfflineImapError(errstr, OfflineImapError.ERROR.REPO), exc_info()[2])