[3.12] gh-127553: Remove outdated TODO comment in _pydatetime (GH-127564) (#128501)
https://github.com/python/cpython/commit/06e4173393664904dc6e0d219837b2cb8a0... commit: 06e4173393664904dc6e0d219837b2cb8a0dadf7 branch: 3.12 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: erlend-aasland <erlend.aasland@protonmail.com> date: 2025-01-04T22:55:24Z summary: [3.12] gh-127553: Remove outdated TODO comment in _pydatetime (GH-127564) (#128501) (cherry picked from commit e8b6b39ff707378da654e15ccddde9c28cefdd30) Co-authored-by: Beomsoo Kim <beoms424@gmail.com> files: M Lib/_pydatetime.py diff --git a/Lib/_pydatetime.py b/Lib/_pydatetime.py index ad6292e1e412c4..fc43cf0bba32da 100644 --- a/Lib/_pydatetime.py +++ b/Lib/_pydatetime.py @@ -2313,7 +2313,6 @@ def __reduce__(self): def _isoweek1monday(year): # Helper to calculate the day number of the Monday starting week 1 - # XXX This could be done more efficiently THURSDAY = 3 firstday = _ymd2ord(year, 1, 1) firstweekday = (firstday + 6) % 7 # See weekday() above
participants (1)
-
erlend-aasland