Skip to content

Commit

Permalink
Merge pull request #2 from snovikov/master
Browse files Browse the repository at this point in the history
Fix deprecation in yaml library
  • Loading branch information
snovikov authored Aug 23, 2019
2 parents 4272a81 + 4200c0e commit c2db801
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 c2db801

Please sign in to comment.