10000 gh-127553: Remove `TODO` comment in `_pydatetime._isoweek1monday` by bombs-kim · Pull Request #127564 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127553: Remove TODO comment in _py 8000 datetime._isoweek1monday #127564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert "Adds a comment about the need for week addition"
This reverts commit 604f61a.
  • Loading branch information
bombs-kim committed Dec 4, 2024
commit e0cad5fedc39b4467c68fc6e6b524abe4e76cd8e
2 changes: 0 additions & 2 deletions Lib/_pydatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -2395,8 +2395,6 @@ def _isoweek1monday(year):
THURSDAY = 3
firstday = _ymd2ord(year, 1, 1)
firstweekday = (firstday + 6) % 7 # See weekday() above
# If the first weekday is after Thursday,
# ISO week 1 doesn't start until the next Monday
week1monday = firstday - firstweekday
if firstweekday > THURSDAY:
week1monday += 7
Expand Down
Loading
0