use ConfigParser in priority with python2
This commit is contained in:
parent
21e53d6837
commit
09acbfde5e
1 changed files with 2 additions and 2 deletions
|
|
@ -40,9 +40,9 @@ from weboob.tools.misc import to_unicode
|
|||
from weboob.tools.browser2.browser import BaseBrowser, Weboob as WeboobProfile
|
||||
from requests.exceptions import HTTPError
|
||||
try:
|
||||
from configparser import RawConfigParser, DEFAULTSECT
|
||||
except ImportError:
|
||||
from ConfigParser import RawConfigParser, DEFAULTSECT
|
||||
except ImportError:
|
||||
from configparser import RawConfigParser, DEFAULTSECT
|
||||
|
||||
|
||||
__all__ = ['IProgress', 'ModuleInstallError', 'ModuleInfo', 'RepositoryUnavailable',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue