Skip to content

Commit 998c549

Browse files
alexhenrievstinner
authored andcommitted
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
1 parent b821173 commit 998c549

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/_datetimemodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2489,7 +2489,6 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw)
24892489
int x_is_odd;
24902490
PyObject *temp;
24912491

2492-
whole_us = round(leftover_us);
24932492
if (fabs(whole_us - leftover_us) == 0.5) {
24942493
/* We're exactly halfway between two integers. In order
24952494
* to do round-half-to-even, we must determine whether x

0 commit comments

Comments
 (0)