summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-20 19:02:49 (GMT)
committerGitHub <noreply@github.com>2018-11-20 19:02:49 (GMT)
commit7a0d964afb41bde846771c81ba746238339cdd8c (patch)
tree2aee68efd940d3ce49eb4e2a3690b3f08643b847 /Python/fileutils.c
parentdac5124ba498b51a2c46e2bda751150ae244ed47 (diff)
downloadcpython-7a0d964afb41bde846771c81ba746238339cdd8c.zip
cpython-7a0d964afb41bde846771c81ba746238339cdd8c.tar.gz
cpython-7a0d964afb41bde846771c81ba746238339cdd8c.tar.bz2
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>
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions