From: Alexander Belopolsky Date: Tue, 12 Jun 2012 20:14:17 +0000 (-0400) Subject: Fixed a typo in time_localtime() X-Git-Tag: v3.3.0b1~237^2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9738242f82109e01561131efecb2e20da93d743;p=thirdparty%2FPython%2Fcpython.git Fixed a typo in time_localtime() --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 5961ac9e4920..a80cb4b82f0a 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -401,7 +401,7 @@ time_localtime(PyObject *self, PyObject *args) if (!parse_time_t_args(args, "|O:localtime", &when)) return NULL; - if (pylocaltime(&when, &buf) == 1) + if (pylocaltime(&when, &buf) == -1) return NULL; return tmtotuple(&buf); }