Minor code fixup. Make sure that len reflects the current list size.

This commit is contained in:
Raymond Hettinger 2003-11-08 11:35:22 +00:00
parent b3af1813eb
commit c24c9106e8
1 changed files with 1 additions and 0 deletions

View File

@ -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);