Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Oct 28, 2023
1 parent 9c5624b commit f423b0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/changelog/generate_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from pathlib import Path

from github import Github, InputGitAuthor
from ruamel import YAML
from ruamel.yaml import YAML

CL_BODY = re.compile(r":cl:(.+)?\r\n((.|\n|\r)+?)\r\n\/:cl:", re.MULTILINE)
CL_SPLIT = re.compile(r"(^\w+):\s+(\w.+)", re.MULTILINE)
Expand Down Expand Up @@ -74,7 +74,7 @@
yaml = YAML(typ='safe', pure=True)

with open(Path.cwd().joinpath("tools/changelog/tags.yml")) as file:
tags = yaml.safe_load(file)
tags = yaml.load(file)

write_cl["changes"] = []

Expand All @@ -88,7 +88,6 @@

if write_cl["changes"]:
with io.StringIO() as cl_contents:
yaml = yaml.YAML()
yaml.indent(sequence=4, offset=2)
yaml.dump(write_cl, cl_contents)
cl_contents.seek(0)
Expand Down

0 comments on commit f423b0d

Please sign in to comment.