Skip to content

Commit

Permalink
Fix Python warnings in mixins-update
Browse files Browse the repository at this point in the history
Tests Done: Build and boot

Tracked-On: OAM-124767
Signed-off-by: Tanuj Tekriwal <tanuj.tekriwal@intel.com>
  • Loading branch information
tanujtekriwal authored and sysopenci committed Sep 17, 2024
1 parent 6fd2989 commit 0617b06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mixin-update
Original file line number Diff line number Diff line change
Expand Up @@ -687,15 +687,15 @@ class Parser(FileHelper):
definitions. If a ConfigParser is supplied as an argument, it will
be augmented with the new data"""
if not cp:
cp = configparser.SafeConfigParser()
cp = configparser.ConfigParser()
cp.optionxform = str

spec_file = sf
if params:
spec_file = self.render_file_content(sf, params)
try:
with open(spec_file) as fp:
cp.readfp(fp)
cp.read_file(fp)
except IOError:
if os.path.islink(spec_file):
self.error("reading sf {} which is a symlink,"
Expand Down

0 comments on commit 0617b06

Please sign in to comment.