Skip to content

Commit 0c153cf

Browse files
Copilotwolph
andauthored
Fix comment wording: utcnow() is deprecated not removed in Python 3.12
Agent-Logs-Url: https://github.com/wolph/python-progressbar/sessions/fdfa1d3f-c76d-4b45-a83f-e4d4446e7db3 Co-authored-by: wolph <270571+wolph@users.noreply.github.com>
1 parent 8520d8c commit 0c153cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def small_interval(monkeypatch) -> None:
3939
def sleep_faster(monkeypatch):
4040
# Compute the local UTC offset so freezegun uses the same timezone as
4141
# the local system. Using datetime.now(timezone.utc).astimezone() avoids
42-
# the deprecated datetime.utcnow() which was removed in Python 3.12+.
42+
# the deprecated datetime.utcnow() (deprecated since Python 3.12).
4343
local_offset = datetime.now(timezone.utc).astimezone().utcoffset()
4444
offset_hours = local_offset.total_seconds() / 3600
4545

0 commit comments

Comments
 (0)