Mercurial > piecrust2
diff piecrust/commands/builtin/themes.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 | f13d618cfec6 |
children |
line wrap: on
line diff
--- a/piecrust/commands/builtin/themes.py Tue Oct 01 07:35:50 2019 -0700 +++ b/piecrust/commands/builtin/themes.py Fri Oct 04 08:48:07 2019 -0700 @@ -75,7 +75,7 @@ if os.path.exists(info_path): info = None with open(info_path, 'r', encoding='utf8') as fp: - theme_cfg = yaml.load(fp.read()) + theme_cfg = yaml.safe_load(fp.read()) if isinstance(theme_cfg, dict): info = theme_cfg.get('theme') if info: