]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-81148: Eliminate unnecessary check in _strptime when determining AM/PM (#13428)
authorGordon P. Hemsley <me@gphemsley.org>
Fri, 19 Sep 2025 10:23:12 +0000 (06:23 -0400)
committerGitHub <noreply@github.com>
Fri, 19 Sep 2025 10:23:12 +0000 (10:23 +0000)
commite3d9bd6be384e8a0ae95f298747c90ef3260d12b
treef8ca1471920f5a57cf27c7762c4eb0d7c6c1ae55
parent85c1ef647751d18194bbc52eb2b1305871e03d10
gh-81148: Eliminate unnecessary check in _strptime when determining AM/PM (#13428)

* bpo-36967: Eliminate unnecessary check in _strptime when determining AM/PM

* Pauls suggestion to refactor test

* Fix test

---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Lib/_strptime.py
Lib/test/datetimetester.py