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

Commit

Permalink
Fix doc build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rbuysse committed Nov 2, 2021
1 parent 241cf34 commit 51a186c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/make_templated_docs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ comments = {
'default': {'line': '//'}}

# Build globals
conf = yaml.load(open(template_abs + '/template_config.yaml', 'r'))
conf = yaml.safe_load(open(template_abs + '/template_config.yaml', 'r'))
env = Environment(
loader=FileSystemLoader(template_abs),
trim_blocks=True,
Expand Down

0 comments on commit 51a186c

Please sign in to comment.