]> granicus.if.org Git - python/commitdiff
fromutc(): Repair incorrect failure return, as noted by NealN. Thanks!
authorTim Peters <tim.peters@gmail.com>
Thu, 23 Jan 2003 17:20:36 +0000 (17:20 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 23 Jan 2003 17:20:36 +0000 (17:20 +0000)
Modules/datetimemodule.c

index 6f729291c8f744c800cfdccaa463da3ee3294502..f615f6851b2b64636e36aa237e5eac5cd1c29a9e 100644 (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;