Skip to content

Commit

Permalink
Fix deprecation in yaml library
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov committed Aug 23, 2019
1 parent e72af56 commit 4200c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion j2parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def render(tpl_path, context):
if options.file:
with open(options.file, 'r') as stream:
try:
environment = yaml.load(stream)
environment = yaml.load(stream, Loader=yaml.FullLoader)
except yaml.YAMLError as exc:
print(exc)

Expand Down

0 comments on commit 4200c0e

Please sign in to comment.