mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fixed a typo in time_localtime()
This commit is contained in:
parent
b7832939c7
commit
d9738242f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue