diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2020-01-08 12:52:44 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@python.org> | 2020-01-08 12:52:44 (GMT) |
commit | 998c54948a29cf5bd8bfa49f973f1ce5855004a0 (patch) | |
tree | bfcfbc72fd18b7113df8186fe97bde98c7e13dad /Modules/_datetimemodule.c | |
parent | b821173b5458d137c8d5edb6e9b4997aac800a38 (diff) | |
download | cpython-998c54948a29cf5bd8bfa49f973f1ce5855004a0.zip cpython-998c54948a29cf5bd8bfa49f973f1ce5855004a0.tar.gz cpython-998c54948a29cf5bd8bfa49f973f1ce5855004a0.tar.bz2 |
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
Diffstat (limited to 'Modules/_datetimemodule.c')
-rw-r--r-- | Modules/_datetimemodule.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw) 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 |