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().
S
Serhiy Storchaka committed
3ec0f495163da3b7a15deb2805cec48aed432f58
Parent: 97f1efb
Committed by GitHub <noreply@github.com>
on 11/20/2018, 6:41:09 PM