From f10a79aad4e2fc62d2c3675e89f873b22b185e7b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 11 Oct 2008 00:49:57 +0000 Subject: merge from trunk --- Modules/_bisectmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/_bisectmodule.c') diff --git a/Modules/_bisectmodule.c b/Modules/_bisectmodule.c index b84509be57..fe2e1102ed 100644 --- a/Modules/_bisectmodule.c +++ b/Modules/_bisectmodule.c @@ -82,7 +82,7 @@ insort_right(PyObject *self, PyObject *args, PyObject *kw) 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 @@ insort_left(PyObject *self, PyObject *args, PyObject *kw) 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 { -- cgit v1.2.1