Skip to content

Commit 356fea2

Browse files
authored
Restore support for Python 3.10 to build (#1436)
`/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 356fea2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target-version = "py311"
1+
target-version = "py310"
22
fix = true
33
output-format = "full"
44
line-length = 88

_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)