From 998c54948a29cf5bd8bfa49f973f1ce5855004a0 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Wed, 8 Jan 2020 12:52:44 +0000 Subject: bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877) --- Modules/_datetimemodule.c | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v0.12