diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-20 19:56:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 19:56:34 (GMT) |
commit | 40fdf471931f029ea07e6190f0fe116e0735661b (patch) | |
tree | 4c63c34560f8cb83cd586f09bc87fb226bf76eef /Python/thread_pthread.h | |
parent | 4845aa6ef813313051db34726afc76c0e7dc5fee (diff) | |
download | cpython-40fdf471931f029ea07e6190f0fe116e0735661b.zip cpython-40fdf471931f029ea07e6190f0fe116e0735661b.tar.gz cpython-40fdf471931f029ea07e6190f0fe116e0735661b.tar.bz2 |
[2.7] bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039) (GH-10617)
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>
Diffstat (limited to 'Python/thread_pthread.h')
0 files changed, 0 insertions, 0 deletions