summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2012-06-12 20:14:17 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2012-06-12 20:14:17 (GMT)
commitd9738242f82109e01561131efecb2e20da93d743 (patch)
tree7172a59f2ee5fe337893820c38113790f60f750e /Modules/timemodule.c
parentb7832939c752038299ea2f6acbb9789a9aaff707 (diff)
downloadcpython-d9738242f82109e01561131efecb2e20da93d743.zip
cpython-d9738242f82109e01561131efecb2e20da93d743.tar.gz
cpython-d9738242f82109e01561131efecb2e20da93d743.tar.bz2
Fixed a typo in time_localtime()
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c2
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);
}