diff options
author | George Liu <liuxiwei@inspur.com> | 2021-10-13 11:23:01 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-10-15 05:26:46 +0300 |
commit | 400d9dab03e25d992429f94296caa4938c281fbd (patch) | |
tree | 823630f2251ad48c7cdc65063d7ed45039dc9df5 | |
parent | aad4f3d4aa2b61502ceddc38d069cc79259027d8 (diff) | |
download | openbmc-400d9dab03e25d992429f94296caa4938c281fbd.tar.xz |
obmc-phosphor-systemd.bbclass: Update configparser module class name
There is a warning message in the obmc-phosphor-systemd.bbclass file
when using bitbake to build image-bmc:
```
DeprecationWarning: The SafeConfigParser class has been renamed to
ConfigParser in Python 3.2. This alias will be removed in future
versions. Use ConfigParser directly instead.
parser = configparser.SafeConfigParser(strict=False)
```
Use the class name `ConfigParser` directly in the configparser module.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I6168d9d1100ac846cc31be837a20b7dedb6d7910
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-systemd.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass index c67fc021f7..b1398e0076 100644 --- a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass @@ -99,7 +99,7 @@ def SystemdUnit(unit): def systemd_parse_unit(d, path): import configparser - parser = configparser.SafeConfigParser(strict=False) + parser = configparser.ConfigParser(strict=False) parser.optionxform = str parser.read('%s' % path) return parser |