Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb85592

Browse files
authored
Replace deprecated utcnow() with now(UTC) (#1097)
* Replace deprecated utcnow() with now(UTC) * Update Python requirements
1 parent a0947e6 commit bb85592

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ The official home of this guide is https://devguide.python.org.
2424
Compilation
2525
-----------
2626

27-
For the compilation of the devguide, you need to use a version of Python which
28-
supports the ``venv`` module, because the ``make html`` command will create a
29-
virtual environment and will install the ``Sphinx`` package::
27+
For the compilation of the devguide, Python 3.11+ is needed::
3028

3129
make html

_tools/generate_release_cycle.py

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

4545
def write_csv(self) -> None:
4646
"""Output CSV files."""
47-
now_str = str(dt.datetime.utcnow())
47+
now_str = str(dt.datetime.now(dt.UTC))
4848

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

0 commit comments

Comments
 (0)