Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 50f3e30

Browse filesBrowse files
hugovkCAM-Gerlach
andauthored
Add encoding and newlines for consistent cross-platform Unicode support
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent a8786b7 commit 50f3e30
Copy full SHA for 50f3e30

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎generate-release-cycle.py

Copy file name to clipboardExpand all lines: generate-release-cycle.py
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.