Fixed a typo in time_localtime()

This commit is contained in:
Alexander Belopolsky 2012-06-12 16:14:17 -04:00
parent b7832939c7
commit d9738242f8

View file

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