]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-138433)
authorStephen Morton <git@tungol.org>
Thu, 11 Sep 2025 07:08:53 +0000 (00:08 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 07:08:53 +0000 (10:08 +0300)
commit859aecc33b82f45e5b7ae30138d28f2a2f33a575
treee984cec28032adb66f61ddfefac673b22203fc8e
parentd0c9943869bb143df445229444224930330ac0f3
gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-138433)

* Improve error messages for path-like relative paths and path-like bytes paths.
* TZPATH is now always a tuple of strings.
Lib/test/test_zoneinfo/test_zoneinfo.py
Lib/zoneinfo/_tzpath.py
Misc/NEWS.d/next/Library/2025-09-03-15-20-10.gh-issue-138432.RMc7UX.rst [new file with mode: 0644]