-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-36959: Fix checks for invalid ISO date formats in _strptime #13408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c3c93e8
to
4e29c31
Compare
Thanks @GPHemsley for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
GH-113495 is a backport of this pull request to the 3.12 branch. |
…ime() (pythonGH-13408) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. (cherry picked from commit 4b2c3e8) Co-authored-by: Gordon P. Hemsley <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
Sorry, @GPHemsley and @serhiy-storchaka, I could not cleanly backport this to
|
… _strptime() (pythonGH-13408) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. (cherry picked from commit 4b2c3e8) Co-authored-by: Gordon P. Hemsley <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
GH-113499 is a backport of this pull request to the 3.11 branch. |
… _strptime() (GH-13408) (GH-113495) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. (cherry picked from commit 4b2c3e8) Co-authored-by: Gordon P. Hemsley <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
… _strptime() (GH-13408) (GH-113499) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. (cherry picked from commit 4b2c3e8) Co-authored-by: Gordon P. Hemsley <[email protected]>
…ime() (pythonGH-13408) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. Co-authored-by: Serhiy Storchaka <[email protected]>
…ime() (pythonGH-13408) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. Co-authored-by: Serhiy Storchaka <[email protected]>
…ime() (pythonGH-13408) Previously some error messages complained about incompatible combinations of directives that are not contained in the format string. Co-authored-by: Serhiy Storchaka <[email protected]>
Also simplifies the logic of the leap year check so that
year is None
is not checked twice.https://bugs.python.org/issue36959