From 4200c0e9631b8c14e063eb7f299257f94c5495e7 Mon Sep 17 00:00:00 2001 From: Sergey Novikov Date: Fri, 23 Aug 2019 14:15:32 +0200 Subject: [PATCH] Fix deprecation in yaml library --- j2parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/j2parse.py b/j2parse.py index 12eb3de..37f135c 100755 --- a/j2parse.py +++ b/j2parse.py @@ -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)