CustonConfig imports withou try except

Python 2 is not supported now. The import is the same in try and except.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-29 09:02:16 +02:00
parent 1618505d3b
commit ead8b157af

View File

@ -18,13 +18,10 @@ import os
import re import re
from sys import exc_info from sys import exc_info
import six import six
from configparser import SafeConfigParser, Error
try:
from configparser import SafeConfigParser, Error
except ImportError: # Python3.
from configparser import SafeConfigParser, Error
from offlineimap.localeval import LocalEval from offlineimap.localeval import LocalEval
class CustomConfigParser(SafeConfigParser): class CustomConfigParser(SafeConfigParser):
def __init__(self): def __init__(self):
SafeConfigParser.__init__(self) SafeConfigParser.__init__(self)