diff piecrust/processing/sitemap.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 45ad976712ec
children
line wrap: on
line diff
--- a/piecrust/processing/sitemap.py	Tue Oct 01 07:35:50 2019 -0700
+++ b/piecrust/processing/sitemap.py	Fri Oct 04 08:48:07 2019 -0700
@@ -36,7 +36,7 @@
 
     def _doProcess(self, in_path, out_path):
         with open(in_path, 'r') as fp:
-            sitemap = yaml.load(fp)
+            sitemap = yaml.safe_load(fp)
 
         try:
             with open(out_path, 'w') as fp: