diff options
author | benchatt <benchatt@users.noreply.github.com> | 2024-06-05 17:35:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 17:35:40 (GMT) |
commit | 14e3c7071bd1add30d4b69b62e011c7d38aebd9b (patch) | |
tree | f0c987ef0c34f30bba9200dfecf154ade5ae0e1c /Python/modsupport.c | |
parent | 10eac0269bce4e2ba575e5b549d3dd9a6da9349a (diff) | |
download | cpython-14e3c7071bd1add30d4b69b62e011c7d38aebd9b.zip cpython-14e3c7071bd1add30d4b69b62e011c7d38aebd9b.tar.gz cpython-14e3c7071bd1add30d4b69b62e011c7d38aebd9b.tar.bz2 |
gh-115225: Raise error on unsupported ISO 8601 time strings (#119339)
Some time strings that contain fractional hours or minutes are permitted
by ISO 8601, but such strings are very unlikely to be intentional. The
current parser does not parse such strings correctly or raise an error.
This change raises a ValueError when hours or minutes contain a decimal mark.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions