From: Alex Henrie Date: Wed, 8 Jan 2020 12:52:44 +0000 (+0000) Subject: bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877) X-Git-Tag: v3.9.0a3~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=998c54948a29cf5bd8bfa49f973f1ce5855004a0;p=thirdparty%2FPython%2Fcpython.git bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877) --- diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index c1b24073436e..0b98cca67d4c 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