diff piecrust/importing/jekyll.py @ 1164:727110ea112a

core: Remove more YAML deprecation warnings.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 04 Oct 2019 08:48:07 -0700
parents 28b021be74eb
children
line wrap: on
line diff
--- a/piecrust/importing/jekyll.py	Tue Oct 01 07:35:50 2019 -0700
+++ b/piecrust/importing/jekyll.py	Fri Oct 04 08:48:07 2019 -0700
@@ -47,7 +47,7 @@
     def convertConfig(self, app, src_path):
         logger.debug("  Converting configuration file.")
         with open(src_path, 'r', encoding='utf8') as fp:
-            config = yaml.load(fp)
+            config = yaml.safe_load(fp)
 
         if 'site' not in config:
             config['site'] = {}