mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
correct typo in return variable for PySequence_Index()
This commit is contained in:
parent
0b1ff66920
commit
8dbcdd0a4c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue