summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 9940fd3..4f8dd3e 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1436,7 +1436,7 @@ PySequence_Fast(PyObject *v, const char *m)
if (v == NULL)
return null_error();
- if (PyList_Check(v) || PyTuple_Check(v)) {
+ if (PyList_CheckExact(v) || PyTuple_CheckExact(v)) {
Py_INCREF(v);
return v;
}