]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) (GH-110882)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 15 Oct 2023 07:59:19 +0000 (10:59 +0300)
committerGitHub <noreply@github.com>
Sun, 15 Oct 2023 07:59:19 +0000 (10:59 +0300)
commit72b0f0eaf52ac46d5f6e165f737d6f891cf8d172
tree06ac601b0b497c6b0a8ebcca34987a965e713829
parentb6755d81d45a1d75e3d2485386dabf7bdde66632
[3.12] bpo-42663: Fix parsing TZ strings in zoneinfo module (GH-23825) (GH-110882)

zipinfo now supports the full range of values in the TZ string
determined by RFC 8536 and detects all invalid formats.
Both Python and C implementations now raise exceptions of the same
type on invalid data.
(cherry picked from commit ab08ff7882b6181fb785eed7410dbf8030aded70)
Lib/test/test_zoneinfo/test_zoneinfo.py
Lib/zoneinfo/_zoneinfo.py
Misc/NEWS.d/next/Library/2022-05-06-15-49-57.gh-issue-86826.rf006W.rst [new file with mode: 0644]
Modules/_zoneinfo.c