Mercurial > piecrust2
diff piecrust/importing/piecrust.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 | 8a96ff3f2b01 |
children |
line wrap: on
line diff
--- a/piecrust/importing/piecrust.py Tue Oct 01 07:35:50 2019 -0700 +++ b/piecrust/importing/piecrust.py Fri Oct 04 08:48:07 2019 -0700 @@ -96,7 +96,7 @@ shutil.rmtree(item_path) def convertConfig(self, content): - config = yaml.load(content) + config = yaml.safe_load(content) sitec = config.setdefault('site', {}) if 'templates_dirs' in sitec: tdc = sitec['templates_dirs']