mirror of https://github.com/python/cpython
correct typo in return variable for PySequence_Index()
This commit is contained in:
parent
0b1ff66920
commit
8dbcdd0a4c
|
@ -879,7 +879,7 @@ PySequence_Index(s, o)
|
|||
err=PyObject_Cmp(item,o,¬_equal) == -1;
|
||||
Py_DECREF(item);
|
||||
if(err) return -1;
|
||||
if(! not_equal) return n;
|
||||
if(! not_equal) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue