Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50f3e30

Browse files
hugovkCAM-Gerlach
andauthored
Add encoding and newlines for consistent cross-platform Unicode support
Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent a8786b7 commit 50f3e30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generate-release-cycle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def save_csv(self) -> None:
7474
now_str = str(dt.datetime.utcnow())
7575

7676
with (
77-
open("include/branches.csv", "w", newline="") as file_branches,
78-
open("include/end-of-life.csv", "w", newline="") as file_eol,
77+
open("include/branches.csv", "w", encoding="UTF-8", newline="") as file_branches,
78+
open("include/end-of-life.csv", "w", encoding="UTF-8", newline="") as file_eol,
7979
):
8080
csv_branches = csv.writer(file_branches, quoting=csv.QUOTE_MINIMAL)
8181
csv_eol = csv.writer(file_eol, quoting=csv.QUOTE_MINIMAL)
@@ -117,7 +117,7 @@ def save_mermaid(self) -> None:
117117
)
118118
out.append(v)
119119

120-
with open("include/release-cycle.mmd", "w") as f:
120+
with open("include/release-cycle.mmd", "w", encoding="UTF-8", newline="\n") as f:
121121
f.writelines(out)
122122

123123

0 commit comments

Comments
 (0)