Skip to content

Commit b0e6ee6

Browse files
noerogm-strzelczyk
andauthored
Use yaml.safe_load() in readme-gen instead of yaml.load(). (GoogleCloudPlatform#10049)
Co-authored-by: Maciej Strzelczyk <strzelczyk@google.com>
1 parent 6fd7602 commit b0e6ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/readme-gen/readme_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def main():
5151
jinja_env.globals['get_help'] = get_help
5252

5353
with io.open(source, 'r') as f:
54-
config = yaml.load(f)
54+
config = yaml.safe_load(f)
5555

5656
# This allows get_help to execute in the right directory.
5757
os.chdir(root)

0 commit comments

Comments
 (0)