correct typo in return variable for PySequence_Index()

This commit is contained in:
Guido van Rossum 1996-11-06 15:31:46 +00:00
parent 0b1ff66920
commit 8dbcdd0a4c

View file

@ -879,7 +879,7 @@ PySequence_Index(s, o)
err=PyObject_Cmp(item,o,&not_equal) == -1;
Py_DECREF(item);
if(err) return -1;
if(! not_equal) return n;
if(! not_equal) return i;
}
return -1;
}