mirror of https://github.com/python/cpython
fromutc(): Repair incorrect failure return, as noted by NealN. Thanks!
This commit is contained in:
parent
52dcce24e2
commit
b1049e8eca
|
@ -2794,7 +2794,7 @@ tzinfo_fromutc(PyDateTime_TZInfo *self, PyDateTime_DateTime *dt)
|
|||
mm += delta;
|
||||
if ((mm < 0 || mm >= 60) &&
|
||||
normalize_datetime(&y, &m, &d, &hh, &mm, &ss, &us) < 0)
|
||||
goto Fail;
|
||||
return NULL;
|
||||
result = new_datetime(y, m, d, hh, mm, ss, us, dt->tzinfo);
|
||||
if (result == NULL)
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue