]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-127553: Remove outdated TODO comment in _pydatetime (GH-127564) (#128500)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 4 Jan 2025 23:01:03 +0000 (00:01 +0100)
committerGitHub <noreply@github.com>
Sat, 4 Jan 2025 23:01:03 +0000 (23:01 +0000)
(cherry picked from commit e8b6b39ff707378da654e15ccddde9c28cefdd30)

Co-authored-by: Beomsoo Kim <beoms424@gmail.com>
Lib/_pydatetime.py

index 34ccb2da13d0f31ac197e8d7b634b002456d4b20..e001bd3bbba4b7286de0c52d9822d0cf7f8eefe1 100644 (file)
@@ -2306,7 +2306,6 @@ datetime.resolution = timedelta(microseconds=1)
 
 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