'ConfigParser' is renamed to 'configparser' in Python 3
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
22f5e67e88
commit
07bc428d47
@ -23,7 +23,11 @@ import logging.config
|
||||
import logging.handlers
|
||||
import os
|
||||
import sys
|
||||
import ConfigParser
|
||||
|
||||
try:
|
||||
import ConfigParser
|
||||
except ImportError:
|
||||
import configparser as ConfigParser
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
Loading…
x
Reference in New Issue
Block a user