commit | d57ab8ac182d15558118523ad1b11b029e105c46 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Tue Nov 20 10:59:12 2018 -0800 |
committer | GitHub <noreply@github.com> | Tue Nov 20 10:59:12 2018 -0800 |
tree | fe05f33b3b41ecd7156707cb25408a9d17521142 | |
parent | f8f9915f9585a5d4f4a4457ef43ac66607c5f380 [diff] |
bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) Fixes assertion failures in _datetimemodule.c introduced in the previous fix (see bpo-31752). Rather of trying to handle an int subclass as exact int, let it to use overridden special methods, but check the result of divmod(). (cherry picked from commit 3ec0f495163da3b7a15deb2805cec48aed432f58) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>