mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
what is a invalid tuple?
This commit is contained in:
parent
b399ab2c5c
commit
9bd9d74996
1 changed files with 2 additions and 2 deletions
|
@ -3702,7 +3702,7 @@ utime_read_time_arguments(utime_arguments *ua)
|
||||||
if (!PyTuple_CheckExact(times) || (PyTuple_Size(times) != 2)) {
|
if (!PyTuple_CheckExact(times) || (PyTuple_Size(times) != 2)) {
|
||||||
PyErr_Format(PyExc_TypeError,
|
PyErr_Format(PyExc_TypeError,
|
||||||
"%s: 'time' must be either"
|
"%s: 'time' must be either"
|
||||||
" a valid tuple of two ints or None",
|
" a tuple of two ints or None",
|
||||||
ua->function_name);
|
ua->function_name);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
@ -3718,7 +3718,7 @@ utime_read_time_arguments(utime_arguments *ua)
|
||||||
if (ns) {
|
if (ns) {
|
||||||
if (!PyTuple_CheckExact(ns) || (PyTuple_Size(ns) != 2)) {
|
if (!PyTuple_CheckExact(ns) || (PyTuple_Size(ns) != 2)) {
|
||||||
PyErr_Format(PyExc_TypeError,
|
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);
|
ua->function_name);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue