[Python-checkins] cpython: Fix typo in exception message.

stefan.krah python-checkins at python.org
Sat May 5 22:38:18 CEST 2012


http://hg.python.org/cpython/rev/ff8fc2819f04
changeset:   76775:ff8fc2819f04
user:        Stefan Krah <skrah at bytereef.org>
date:        Sat May 05 22:37:05 2012 +0200
summary:
  Fix typo in exception message.

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


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3711,7 +3711,7 @@
     if (times && (times != Py_None)) {
         if (!PyTuple_CheckExact(times) || (PyTuple_Size(times) != 2)) {
             PyErr_Format(PyExc_TypeError,
-                         "%s: 'time' must be either"
+                         "%s: 'times' must be either"
                          " a tuple of two ints or None",
                          ua->function_name);
             return_value = utime_times_conversion_failure;

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


More information about the Python-checkins mailing list