]> granicus.if.org Git - python/commit
Fix when parsing tz offsets microseconds shorter than 6 (#4781)
authorMario Corchero <mariocj89@gmail.com>
Tue, 9 Jan 2018 21:37:26 +0000 (21:37 +0000)
committerAlexander Belopolsky <abalkin@users.noreply.github.com>
Tue, 9 Jan 2018 21:37:26 +0000 (16:37 -0500)
commitf80c0ca13330112fe4d8018609c085ef556cb5bf
tree652f2e1c70cd8b3e003bee3e92ae8bf8c57b3801
parentd4864c61e3e27e337762dc45e504977299bd5b46
Fix when parsing tz offsets microseconds shorter than 6 (#4781)

As the remainder was directly parsed as an int, strings like
.600 were parsed as 600 microseconds rather than milliseconds.
Lib/_strptime.py
Lib/test/test_strptime.py