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 b853e39

Browse filesBrowse files
hugovkCAM-Gerlach
andcommitted
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 b853e39
Copy full SHA for b853e39

File tree

1 file changed

+9
-3
lines changed
Filter options

1 file changed

+9
-3
lines changed

‎generate-release-cycle.py

Copy file name to clipboardExpand all lines: generate-release-cycle.py
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ 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(
78+
"include/branches.csv", "w", encoding="UTF-8", newline=""
79+
) as file_branches,
80+
open(
81+
"include/end-of-life.csv", "w", encoding="UTF-8", newline=""
82+
) as file_eol,
7983
):
8084
csv_branches = csv.writer(file_branches, quoting=csv.QUOTE_MINIMAL)
8185
csv_eol = csv.writer(file_eol, quoting=csv.QUOTE_MINIMAL)
@@ -117,7 +121,9 @@ def save_mermaid(self) -> None:
117121
)
118122
out.append(v)
119123

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

123129

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.