Skip to content

Commit

Permalink
Do not pass Loader argument to ruamel.yaml.load() invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Oct 16, 2021
1 parent 9b2c631 commit 1a54999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scc/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -4119,7 +4119,7 @@ def extact_metadata(self, directory):
if fn == self.META_FILE:
fullpath = os.path.join(dirpath, fn)
with open(fullpath) as fp:
data = yaml.load(fp, Loader=yaml.FullLoader)
data = yaml.load(fp)
# find information about the repository
jinja2 = {}
with open(fullpath) as file:
Expand Down Expand Up @@ -4231,7 +4231,7 @@ def update_data(self, directory, jinja2, version, sha256,
yaml.indent(mapping=2)
# read the meta files and update the value
with open(fullpath) as fp:
data = yaml.load(fp, Loader=yaml.FullLoader)
data = yaml.load(fp)
if data["source"][self.KEY_SHA] and \
self.KEY_SHA not in jinja2.keys():
data["source"][self.KEY_SHA] = sha256
Expand Down

0 comments on commit 1a54999

Please sign in to comment.