Minor code fixup. Make sure that len reflects the current list size.
This commit is contained in:
parent
b3af1813eb
commit
c24c9106e8
|
@ -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…
Reference in New Issue