From 7fff7fc45888aba638454927277f28edf8ce6a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Thu, 3 Sep 2020 21:08:46 +0200 Subject: [PATCH] repository/__init__.py remove try import python2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch removes the dup code between try and catch Signed-off-by: Rodolfo García Peñas (kix) --- offlineimap/repository/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/offlineimap/repository/__init__.py b/offlineimap/repository/__init__.py index a177f26..ad2edf2 100644 --- a/offlineimap/repository/__init__.py +++ b/offlineimap/repository/__init__.py @@ -15,12 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA from sys import exc_info - -try: - from configparser import NoSectionError -except ImportError: # python2 - from configparser import NoSectionError - +from configparser import NoSectionError from offlineimap.repository.IMAP import IMAPRepository, MappedIMAPRepository from offlineimap.repository.Gmail import GmailRepository from offlineimap.repository.Maildir import MaildirRepository