Import configparser for python3 compatability
Attempt to load first ConfigParser and then configparser. At some point this should be switched to do the python3 thing first. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
55da31c84b
commit
a8ab269ada
@ -1,5 +1,4 @@
|
|||||||
# Copyright (C) 2003 John Goerzen
|
# Copyright (C) 2003-2012 John Goerzen & contributors
|
||||||
# <jgoerzen@complete.org>
|
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -15,7 +14,10 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
from ConfigParser import SafeConfigParser
|
try:
|
||||||
|
from ConfigParser import SafeConfigParser
|
||||||
|
except ImportError: #python3
|
||||||
|
from configparser import SafeConfigParser
|
||||||
from offlineimap.localeval import LocalEval
|
from offlineimap.localeval import LocalEval
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user