]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137481: Fix abbreviation of day names in TextCalendar (GH-137482)
authorScott Noyes <snoyes@gmail.com>
Wed, 20 Aug 2025 16:55:50 +0000 (12:55 -0400)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 16:55:50 +0000 (19:55 +0300)
commit3143ceeb1deea9d5722f14ad4b62cf6ea26d983c
tree7112414290260856c4d104c915aaa9d02d3bd8c0
parent7fda8b66debb24e0520b94c3769b648c7305f84e
gh-137481: Fix abbreviation of day names in TextCalendar (GH-137482)

Use the length of the longest day name in the current locale, rather
than a constant 9, to decide if the names should be abbreviated.
Lib/calendar.py
Lib/test/test_calendar.py
Misc/NEWS.d/next/Library/2025-08-06-16-54-22.gh-issue-137481.eSTkK0.rst [new file with mode: 0644]