mirror of
https://github.com/python/cpython.git
synced 2026-01-29 02:32:18 +00:00
Silence compiler warning
This commit is contained in:
parent
127ef44c7b
commit
bbe92887ce
1 changed files with 1 additions and 1 deletions
|
|
@ -1157,7 +1157,7 @@ PySequence_Check(PyObject *s)
|
|||
{
|
||||
if (s && PyInstance_Check(s))
|
||||
return PyObject_HasAttrString(s, "__getitem__");
|
||||
if (PyObject_IsInstance(s, &PyDict_Type))
|
||||
if (PyObject_IsInstance(s, (PyObject *)&PyDict_Type))
|
||||
return 0;
|
||||
return s != NULL && s->ob_type->tp_as_sequence &&
|
||||
s->ob_type->tp_as_sequence->sq_item != NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue