8000 Generate release cycle chart and CSV by hugovk · Pull Request #988 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Generate release cycle chart and CSV #988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Dec 5, 2022
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add encoding and newlines for consistent cross-platform Unicode support
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
hugovk and CAM-Gerlach committed Nov 21, 2022
commit b853e396351010a5f4f2bf828c24e9df34219dc1
12 changes: 9 additions & 3 deletions generate-release-cycle.py
< 43A0 tr data-hunk="2588e7e5e6a7b7d1d3430199487b7ac2cd9bad720b544e9cd66abd97aa719248" class="show-top-border">
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ def save_csv(self) -> None:
now_str = str(dt.datetime.utcnow())

with (
open("include/branches.csv", "w", newline="") as file_branches,
open("include/end-of-life.csv", "w", newline="") as file_eol,
open(
"include/branches.csv", "w", encoding="UTF-8", newline=""
) as file_branches,
open(
"include/end-of-life.csv", "w", encoding="UTF-8", newline=""
) as file_eol,
):
csv_branches = csv.writer(file_branches, quoting=csv.QUOTE_MINIMAL)
csv_eol = csv.writer(file_eol, quoting=csv.QUOTE_MINIMAL)
Expand Down Expand Up @@ -117,7 +121,9 @@ def save_mermaid(self) -> None:
)
out.append(v)

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


Expand Down
0