Commit 1696d7f8 authored by Alexander Belopolsky's avatar Alexander Belopolsky

Fixed a typo in time_localtime()

parent bce03a87
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment