]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-13843...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 11 Sep 2025 07:35:39 +0000 (10:35 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 07:35:39 +0000 (07:35 +0000)
commit72b28cad917c5ef3b0d26d81bbe9ed3a151f4ad3
treeb1a2f5f84d685397f132663fdaf304cf7331b26b
parentafec6a546049b80fdbaf18baa3a4d2cbc535ce58
[3.13] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-138433) (GH-138778)

* 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]