]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
authorAlex Henrie <alexhenrie24@gmail.com>
Wed, 8 Jan 2020 12:52:44 +0000 (12:52 +0000)
committerVictor Stinner <vstinner@python.org>
Wed, 8 Jan 2020 12:52:44 +0000 (13:52 +0100)
Modules/_datetimemodule.c

index c1b24073436e63f6a0c516e60bd5b16e9c474527..0b98cca67d4c571801af038560308a3455cc382f 100644 (file)
@@ -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