Skip to content

Commit

Permalink
Merge pull request #1472 from davidcostanzo/fix-build-module-1456
Browse files Browse the repository at this point in the history
Fix "play build-module" by replacing yaml.load with yaml.safe_load
  • Loading branch information
xael-fry authored Mar 3, 2024
2 parents b80ed47 + f21a039 commit e0916dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/pym/play/commands/modulesrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def build(app, args, env):
if os.path.exists(deps_file):
f = open(deps_file)
try:
deps = yaml.load(f.read())
deps = yaml.safe_load(f.read())
if 'self' in deps:
splitted = deps["self"].split(" -> ")
if len(splitted) == 2:
Expand All @@ -354,7 +354,7 @@ def build(app, args, env):

if os.path.exists(deps_file):
f = open(deps_file)
deps = yaml.load(f.read())
deps = yaml.safe_load(f.read())
if 'self' in deps:
splitted = deps["self"].split(" -> ")
f.close()
Expand Down

0 comments on commit e0916dd

Please sign in to comment.