mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
fromutc(): Repair incorrect failure return, as noted by NealN. Thanks!
This commit is contained in:
parent
52dcce24e2
commit
b1049e8eca
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue