diff options
author | Guido van Rossum <guido@python.org> | 1996-11-06 15:31:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-11-06 15:31:46 (GMT) |
commit | 8dbcdd0a4c69125e05b58e7a00377c6b3382b9b5 (patch) | |
tree | 5ee5c2ed00dab11de293ea5d7587d1f3b49040a2 /Objects/abstract.c | |
parent | 0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed (diff) | |
download | cpython-8dbcdd0a4c69125e05b58e7a00377c6b3382b9b5.zip cpython-8dbcdd0a4c69125e05b58e7a00377c6b3382b9b5.tar.gz cpython-8dbcdd0a4c69125e05b58e7a00377c6b3382b9b5.tar.bz2 |
correct typo in return variable for PySequence_Index()
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index d434c7d..bb197a5 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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; } |