This commit is contained in:
Raymond Hettinger 2015-05-17 14:47:00 -07:00
commit 740d6134f1
2 changed files with 13 additions and 1 deletions

View file

@ -1681,7 +1681,7 @@ PySequence_Tuple(PyObject *v)
Py_INCREF(v);
return v;
}
if (PyList_Check(v))
if (PyList_CheckExact(v))
return PyList_AsTuple(v);
/* Get iterator. */