mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
replace PyXXX_Length calls with PyXXX_Size calls
This commit is contained in:
parent
6253f83b0a
commit
03657cfdb0
14 changed files with 30 additions and 29 deletions
|
@ -1934,7 +1934,7 @@ Tkinter_Flatten(PyObject* self, PyObject* args)
|
|||
if (!PyArg_ParseTuple(args, "O:_flatten", &item))
|
||||
return NULL;
|
||||
|
||||
context.maxsize = PySequence_Length(item);
|
||||
context.maxsize = PySequence_Size(item);
|
||||
if (context.maxsize <= 0)
|
||||
return PyTuple_New(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue