Skip to content

Commit

Permalink
Fix concat_release_notes.py on Windows (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano authored Oct 7, 2024
1 parent b8d6453 commit f8323dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/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 Runtime IBM Client 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 f8323dc

Please sign in to comment.