commit | b1049e8eca13f6e2634a8eba119f7c5ce5a6b1aa | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Thu Jan 23 17:20:36 2003 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Thu Jan 23 17:20:36 2003 +0000 |
tree | bcab5951469a8ee037e0b6109fb59c3beb895208 | |
parent | 52dcce24e232a9e4f57e5f828f0fd1e40f1fecdb [diff] |
fromutc(): Repair incorrect failure return, as noted by NealN. Thanks!
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 6f72929..f615f68 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c
@@ -2794,7 +2794,7 @@ 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;