Skip to content

Commit fadb6a4

Browse files
Generator: use yaml.load instead of safe_load
Use yaml.load instead of yaml.safe_load because yaml.safe_load is deprecated in ruamel.yaml.
1 parent 19be59a commit fadb6a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/evolution-generator/src/scripts/generate_labels.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def save_translations(
224224
with open(file_path, "r", encoding="utf-8") as f:
225225
content = f.read()
226226
try:
227-
existing = yaml.safe_load(content) or {}
227+
# Note: Use yaml.load instead of .safe_load because .safe_load is deprecated in ruamel.yaml.
228+
existing = yaml.load(content) or {}
228229
except Exception:
229230
existing = {}
230231
merged = merged_section_translations(existing, section_translations)

0 commit comments

Comments
 (0)