Whole file

pganssle/zoneinfo

The author described this change as Fix support for quoted DST strings. It counts as a record because the check below fails on the code as it stood at 8753f75d7 and passes on d3906203a, with nothing else changed between the two runs.

Fix saved2020-02-28
Sharing licenceApache-2.0 · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a save note

Fix support for quoted DST strings

The change

713713 parser_re = re.compile(
714714 r"(?P<std>[^<0-9:.+-]+|<[a-zA-Z0-9+\-]+>)" +
715715 r"((?P<stdoff>[+-]?\d{1,2}(:\d{2}(:\d{2})?)?)" +
716- r"((?P<dst>[^0-9:.+-]+|<[a-zA-Z0-9+\-]>)" +
716+ r"((?P<dst>[^0-9:.+-]+|<[a-zA-Z0-9+\-]+>)" +
717717 r"((?P<dstoff>[+-]?\d{1,2}(:\d{2}(:\d{2})?)?))?" +
718718 r")?" + # dst
719719 r")?$" # stdoff

The check that tells the two apart

failpass·tests/test_zoneinfo.py::TZStrTest::test_m_spec_localized

Check file tests/test_zoneinfo.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it8753f75d7541060cc57ffe0be56b3a49bb4b01f3
Broken version dated2020-02-25
Modulezoneinfo._zoneinfo
Units changed_parse_tz_str
Fingerprintbbbd383a0f9cb706
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in pganssle/zoneinfo