https://github.com/python/cpython/commit/e8b6b39ff707378da654e15ccddde9c28cefdd30
commit: e8b6b39ff707378da654e15ccddde9c28cefdd30
branch: main
author: Beomsoo Kim <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2025-01-04T23:38:49+01:00
summary:

gh-127553: Remove outdated TODO comment in _pydatetime (#127564)

files:
M Lib/_pydatetime.py

diff --git a/Lib/_pydatetime.py b/Lib/_pydatetime.py
index ed01670cfece43..be90c9b1315d53 100644
--- a/Lib/_pydatetime.py
+++ b/Lib/_pydatetime.py
@@ -2392,7 +2392,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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to