[Python-checkins] cpython: Fixed a typo in time_localtime()

alexander.belopolsky python-checkins at python.org
Tue Jun 12 22:14:32 CEST 2012


http://hg.python.org/cpython/rev/a6c53396c2c3
changeset:   77413:a6c53396c2c3
user:        Alexander Belopolsky <alexander.belopolsky at gmail.com>
date:        Tue Jun 12 16:14:17 2012 -0400
summary:
  Fixed a typo in time_localtime()

files:
  Modules/timemodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/timemodule.c b/Modules/timemodule.c
--- 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);
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list