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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user