diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2012-06-12 20:14:17 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2012-06-12 20:14:17 (GMT) |
commit | d9738242f82109e01561131efecb2e20da93d743 (patch) | |
tree | 7172a59f2ee5fe337893820c38113790f60f750e /Modules | |
parent | b7832939c752038299ea2f6acbb9789a9aaff707 (diff) | |
download | cpython-d9738242f82109e01561131efecb2e20da93d743.zip cpython-d9738242f82109e01561131efecb2e20da93d743.tar.gz cpython-d9738242f82109e01561131efecb2e20da93d743.tar.bz2 |
Fixed a typo in time_localtime()
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 5961ac9..a80cb4b 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); } |