Skip to content

Commit 4e7ba07

Browse files
authored
remove unnecessary dependencies on yaml (#206)
1 parent 090d82e commit 4e7ba07

3 files changed

Lines changed: 930 additions & 684 deletions

File tree

examples/scripts/generate_sam_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
from pathlib import Path
55

6-
import yaml
6+
import json
77

88

99
def load_catalog():
@@ -97,7 +97,7 @@ def generate_sam_template():
9797

9898
template_path = Path(__file__).parent.parent / "template.yaml"
9999
with open(template_path, "w") as f:
100-
yaml.dump(template, f, default_flow_style=False, sort_keys=False)
100+
json.dump(template, f, sort_keys=False, indent=2)
101101

102102
print(f"Generated SAM template at {template_path}")
103103

0 commit comments

Comments
 (0)