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
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)