commit | d9738242f82109e01561131efecb2e20da93d743 | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Tue Jun 12 16:14:17 2012 -0400 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Tue Jun 12 16:14:17 2012 -0400 |
tree | 7172a59f2ee5fe337893820c38113790f60f750e | |
parent | b7832939c752038299ea2f6acbb9789a9aaff707 [diff] [blame] |
Fixed a typo in time_localtime()
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 @@ 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); }