Skip to content

Commit 092ba09

Browse files
committed
Restore support for Python 3.10 to build
`/usr/bin/python3` is still 3.10 in some widely-used distros and the support requirement is not onerous, needing only to use a longer-lived alias for the same object (`assert datetime.UTC is datetime.timezone.utc` holds where both exist).
1 parent 3743f23 commit 092ba09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tools/generate_release_cycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self) -> None:
4545

4646
def write_csv(self) -> None:
4747
"""Output CSV files."""
48-
now_str = str(dt.datetime.now(dt.UTC))
48+
now_str = str(dt.datetime.now(dt.timezone.utc))
4949

5050
versions_by_category = {"branches": {}, "end-of-life": {}}
5151
headers = None

0 commit comments

Comments
 (0)