]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-13843...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 21:06:37 +0000 (23:06 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 21:06:37 +0000 (23:06 +0200)
commitdfdda53e6795c7e9621041fbb4b309759b7c1b06
tree2868ab96a8fe4b63fea312535fe8a8e7cfeac85a
parent61d49a5d37fbff7839fe7f2f746bbc9d464feb87
[3.14] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-138433) (GH-138777)

* Improve error messages for path-like relative paths and path-like bytes paths.
* TZPATH is now always a tuple of strings.
(cherry picked from commit 859aecc33b82f45e5b7ae30138d28f2a2f33a575)

Co-authored-by: Stephen Morton <git@tungol.org>
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]