mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Minor code fixup. Make sure that len reflects the current list size.
This commit is contained in:
parent
b3af1813eb
commit
c24c9106e8
1 changed files with 1 additions and 0 deletions
|
|
@ -1968,6 +1968,7 @@ fail:
|
|||
merge_freemem(&ms);
|
||||
|
||||
if (keyfunc != NULL) {
|
||||
len = PyList_GET_SIZE(self);
|
||||
for (i=0 ; i < len ; i++) {
|
||||
kvpair = PyList_GET_ITEM(self, i);
|
||||
value = sortwrapper_getvalue(kvpair);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue