mirror of https://github.com/python/cpython.git
bpo-39237, datetime: Remove redundant call to round from delta_new (GH-17877)
This commit is contained in:
parent
b821173b54
commit
998c54948a
|
@ -2489,7 +2489,6 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
||||||
int x_is_odd;
|
int x_is_odd;
|
||||||
PyObject *temp;
|
PyObject *temp;
|
||||||
|
|
||||||
whole_us = round(leftover_us);
|
|
||||||
if (fabs(whole_us - leftover_us) == 0.5) {
|
if (fabs(whole_us - leftover_us) == 0.5) {
|
||||||
/* We're exactly halfway between two integers. In order
|
/* We're exactly halfway between two integers. In order
|
||||||
* to do round-half-to-even, we must determine whether x
|
* to do round-half-to-even, we must determine whether x
|
||||||
|
|
Loading…
Reference in New Issue