diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-01-23 17:20:36 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-01-23 17:20:36 (GMT) |
commit | b1049e8eca13f6e2634a8eba119f7c5ce5a6b1aa (patch) | |
tree | bcab5951469a8ee037e0b6109fb59c3beb895208 /Modules/datetimemodule.c | |
parent | 52dcce24e232a9e4f57e5f828f0fd1e40f1fecdb (diff) | |
download | cpython-b1049e8eca13f6e2634a8eba119f7c5ce5a6b1aa.zip cpython-b1049e8eca13f6e2634a8eba119f7c5ce5a6b1aa.tar.gz cpython-b1049e8eca13f6e2634a8eba119f7c5ce5a6b1aa.tar.bz2 |
fromutc(): Repair incorrect failure return, as noted by NealN. Thanks!
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r-- | Modules/datetimemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |