Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
1157:40a40305c4e1 | 1158:5762a0b821ac |
---|---|
61 if info is None: | 61 if info is None: |
62 info = _ConcatInfo() | 62 info = _ConcatInfo() |
63 self._cache[path] = info | 63 self._cache[path] = info |
64 | 64 |
65 with open(path, 'r') as fp: | 65 with open(path, 'r') as fp: |
66 config = yaml.load(fp) | 66 config = yaml.load(fp, Loader=yaml.SafeLoader) |
67 | 67 |
68 info.files = config.get('files', []) | 68 info.files = config.get('files', []) |
69 info.delim = config.get('delim', "\n") | 69 info.delim = config.get('delim', "\n") |
70 info.timestamp = cur_time | 70 info.timestamp = cur_time |
71 | 71 |