commit | 998c54948a29cf5bd8bfa49f973f1ce5855004a0 | [log] [tgz] |
---|---|---|
author | Alex Henrie <alexhenrie24@gmail.com> | Wed Jan 08 12:52:44 2020 +0000 |
committer | Victor Stinner <vstinner@python.org> | Wed Jan 08 13:52:44 2020 +0100 |
tree | bfcfbc72fd18b7113df8186fe97bde98c7e13dad | |
parent | b821173b5458d137c8d5edb6e9b4997aac800a38 [diff] |
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index c1b2407..0b98cca 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c
@@ -2489,7 +2489,6 @@ int x_is_odd; PyObject *temp; - whole_us = round(leftover_us); if (fabs(whole_us - leftover_us) == 0.5) { /* We're exactly halfway between two integers. In order * to do round-half-to-even, we must determine whether x