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:
parent
1618505d3b
commit
ead8b157af
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user