Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit d88015f

Browse files
committed
Fix doc build
The 6.0 release of PyYAML (a bandit dependency) introduced a change that requires the `Loader=` argument when using `yaml.load()`. Because we don't need any of the additional funcationality available in `yaml.load()`, this function was switched to `yaml.safe_load()` instead. yaml/pyyaml#561 Signed-off-by: Ryan Beck-Buysse <rbuysse@bitwise.io>
1 parent cec1f88 commit d88015f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/make_templated_docs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ comments = {
4242
'default': {'line': '//'}}
4343

4444
# Build globals
45-
conf = yaml.load(open(template_abs + '/template_config.yaml', 'r'))
45+
conf = yaml.safe_load(open(template_abs + '/template_config.yaml', 'r'))
4646
env = Environment(
4747
loader=FileSystemLoader(template_abs),
4848
trim_blocks=True,

0 commit comments

Comments
 (0)