diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-12-10 03:37:59 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-12-10 03:37:59 (GMT) |
commit | 5fb877027b4284e6cef49bea7157b11d3d938a7b (patch) | |
tree | e79b336b8a175f5d1cb1701ce343f700f485e969 /Objects | |
parent | d4e31a4316e6d96269a83f41ec341c3bb89cc3b5 (diff) | |
download | cpython-5fb877027b4284e6cef49bea7157b11d3d938a7b.zip cpython-5fb877027b4284e6cef49bea7157b11d3d938a7b.tar.gz cpython-5fb877027b4284e6cef49bea7157b11d3d938a7b.tar.bz2 |
substitute PyDict_Check() for PyObject_IsInstance
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 5eb7b28..8d6f023 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1810,7 +1810,7 @@ PySequence_Check(PyObject *s) { if (s && PyInstance_Check(s)) return PyObject_HasAttrString(s, "__getitem__"); - if (PyObject_IsInstance(s, (PyObject *)&PyDict_Type)) + if (PyDict_Check(s)) return 0; return s != NULL && s->ob_type->tp_as_sequence && s->ob_type->tp_as_sequence->sq_item != NULL; |