obmc-phosphor-systemd: use new configparser
ConfigParser has been renamed to configparser in python3
for PEP 8 compliance.
Change-Id: I3d95329ea1adcdeb02b83245e7d13f5bf1d7de58
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
index 7446d4b..10553c5 100644
--- a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
@@ -98,8 +98,8 @@
def systemd_parse_unit(d, path):
- import ConfigParser
- parser = ConfigParser.SafeConfigParser()
+ import configparser
+ parser = configparser.SafeConfigParser(strict=False)
parser.optionxform = str
parser.read('%s' % path)
return parser