Skip to content

Commit

Permalink
Fix concat_release_notes.py on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Oct 7, 2024
1 parent 3838dbb commit cb4f85c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/concat_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ def generate_header(output_file: Path) -> None:
Qiskit IBM Transpiler release notes\n\
=======================================\n\
\n\
.. towncrier release notes start\n"
.. towncrier release notes start\n",
"utf-8",
)


def concat_release_notes(output_file: Path, release_notes_paths: list[Path]) -> None:
with output_file.open("a") as file:
with output_file.open("a", encoding="utf-8") as file:
for release_note in release_notes_paths:
file.write(f"\n{release_note.read_text()}")
file.write(f"\n{release_note.read_text('utf-8')}")


def main() -> None:
Expand Down

0 comments on commit cb4f85c

Please sign in to comment.