summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2020-01-08 12:52:44 +0000
committerVictor Stinner <vstinner@python.org>2020-01-08 13:52:44 +0100
commit998c54948a29cf5bd8bfa49f973f1ce5855004a0 (patch)
treebfcfbc72fd18b7113df8186fe97bde98c7e13dad
parentb821173b5458d137c8d5edb6e9b4997aac800a38 (diff)
downloadcpython-git-998c54948a29cf5bd8bfa49f973f1ce5855004a0.tar.gz
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
-rw-r--r--Modules/_datetimemodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
index c1b2407343..0b98cca67d 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