Commit 1e6e8075 authored by Michael W. Hudson's avatar Michael W. Hudson

Use PyList_CheckExact and PyTuple_CheckExact for checking whether

PySequence_Fast needs to do anything siginificant.
parent 3fb1c1ce
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment