[Python-checkins] cpython: what is a invalid tuple?

benjamin.peterson python-checkins at python.org
Fri May 4 07:42:45 CEST 2012


http://hg.python.org/cpython/rev/6951adf604ea
changeset: 76745:6951adf604ea
user: Benjamin Peterson <benjamin at python.org>
date: Fri May 04 01:42:41 2012 -0400
summary:
 what is a invalid tuple?
files:
 Modules/posixmodule.c | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3702,7 +3702,7 @@
 if (!PyTuple_CheckExact(times) || (PyTuple_Size(times) != 2)) {
 PyErr_Format(PyExc_TypeError,
 "%s: 'time' must be either"
- " a valid tuple of two ints or None",
+ " a tuple of two ints or None",
 ua->function_name);
 goto fail;
 }
@@ -3718,7 +3718,7 @@
 if (ns) {
 if (!PyTuple_CheckExact(ns) || (PyTuple_Size(ns) != 2)) {
 PyErr_Format(PyExc_TypeError,
- "%s: 'ns' must be a valid tuple of two ints",
+ "%s: 'ns' must be a tuple of two ints",
 ua->function_name);
 goto fail;
 }
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /