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

Stefan Krah stefan at bytereef.org
Fri May 4 11:45:35 CEST 2012


benjamin.peterson <python-checkins at python.org> wrote:
> 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",


Unrelated to this commit, but 'time' should be 'times'.


Stefan Krah





More information about the Python-Dev mailing list