Update python script to use load_yaml

This commit is contained in:
Twangboy 2023-05-05 15:20:41 -06:00
parent 5b69f6e5ed
commit 0e89ac8050
No known key found for this signature in database
GPG key ID: 9B77EE3C5C0D9F63

View file

@ -23,8 +23,8 @@ new_contents = []
added = False
for line in current_contents:
new_contents.append(line)
if "for version in [" in line and not added:
new_contents.append(f" '{version}',\n")
if "load_yaml as versions_relenv" in line and not added:
new_contents.append(f"- {version}\n")
added = True
with open(file, "w") as f: