bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)

This commit is contained in:
Alex Henrie 2020-01-08 12:52:44 +00:00 committed by Victor Stinner
parent b821173b54
commit 998c54948a
1 changed files with 0 additions and 1 deletions

View 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