fromutc(): Repair incorrect failure return, as noted by NealN. Thanks!

This commit is contained in:
Tim Peters 2003-01-23 17:20:36 +00:00
parent 52dcce24e2
commit b1049e8eca
1 changed files with 1 additions and 1 deletions

View File

@ -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;