Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 72942d7

Browse files
committed
chore: use yaml.safe_load
1 parent b5098fb commit 72942d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gapic/utils/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def tweak_path(p):
147147
if service_yaml_paths:
148148
# Just use the last file specified.
149149
with open(service_yaml_paths[-1]) as f:
150-
service_yaml_config = yaml.load(f, Loader=yaml.Loader)
150+
service_yaml_config = yaml.safe_load(f, Loader=yaml.Loader)
151151
# The yaml service files typically have this field,
152152
# but it is not a field in the gogle.api.Service proto.
153153
service_yaml_config.pop("type", None)

0 commit comments

Comments
 (0)