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.
Projectpganssle/zoneinfo
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
| 713 | 713 | parser_re = re.compile( | |
| 714 | 714 | r"(?P<std>[^<0-9:.+-]+|<[a-zA-Z0-9+\-]+>)" + | |
| 715 | 715 | 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+\-]+>)" + | |
| 717 | 717 | r"((?P<dstoff>[+-]?\d{1,2}(:\d{2}(:\d{2})?)?))?" + | |
| 718 | 718 | r")?" + # dst | |
| 719 | 719 | r")?$" # stdoff |
The check that tells the two apart
fail→pass·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.