Skip to content

Commit

Permalink
bpo-39237, datetime: Remove redundant call to round from delta_new (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhenrie authored and vstinner committed Jan 8, 2020
1 parent b821173 commit 998c549
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/_datetimemodule.c
Expand Up @@ -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
Expand Down

0 comments on commit 998c549

Please sign in to comment.