diff piecrust/processing/util.py @ 1158:5762a0b821ac

core: Remove yaml deprecation warning.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 11 Jun 2019 16:40:11 -0700
parents 46025a1b5434
children
line wrap: on
line diff
--- a/piecrust/processing/util.py	Tue Jun 11 15:14:20 2019 -0700
+++ b/piecrust/processing/util.py	Tue Jun 11 16:40:11 2019 -0700
@@ -63,7 +63,7 @@
             self._cache[path] = info
 
         with open(path, 'r') as fp:
-            config = yaml.load(fp)
+            config = yaml.load(fp, Loader=yaml.SafeLoader)
 
         info.files = config.get('files', [])
         info.delim = config.get('delim', "\n")