diff Modules/_bisectmodule.c @ 49493:bdf4da5d04ad

merge from trunk
author Benjamin Peterson <benjamin@python.org>
date Sat, 11 Oct 2008 00:49:57 +0000
parents 35b1a20470db
children cab14be0ada1
line wrap: on
line diff
--- a/Modules/_bisectmodule.c	Fri Oct 10 23:15:38 2008 +0000
+++ b/Modules/_bisectmodule.c	Sat Oct 11 00:49:57 2008 +0000
@@ -82,7 +82,7 @@
 	index = internal_bisect_right(list, item, lo, hi);
 	if (index < 0)
 		return NULL;
-	if (PyList_Check(list)) {
+	if (PyList_CheckExact(list)) {
 		if (PyList_Insert(list, index, item) < 0)
 			return NULL;
 	} else {
@@ -183,7 +183,7 @@
 	index = internal_bisect_left(list, item, lo, hi);
 	if (index < 0)
 		return NULL;
-	if (PyList_Check(list)) {
+	if (PyList_CheckExact(list)) {
 		if (PyList_Insert(list, index, item) < 0)
 			return NULL;
 	} else {