From ead8b157afdb4a3eea80f3b84db9268d7b32e473 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 09:02:16 +0200 Subject: [PATCH] CustonConfig imports withou try except Python 2 is not supported now. The import is the same in try and except. --- offlineimap/CustomConfig.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/offlineimap/CustomConfig.py b/offlineimap/CustomConfig.py index 07a73f8..ddb3d9c 100644 --- a/offlineimap/CustomConfig.py +++ b/offlineimap/CustomConfig.py @@ -18,13 +18,10 @@ import os import re from sys import exc_info import six - -try: - from configparser import SafeConfigParser, Error -except ImportError: # Python3. - from configparser import SafeConfigParser, Error +from configparser import SafeConfigParser, Error from offlineimap.localeval import LocalEval + class CustomConfigParser(SafeConfigParser): def __init__(self): SafeConfigParser.__init__(self)