commit | f609654b0e36796275b7c9f822349e89fe9b4f2d | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Nov 17 22:33:12 2010 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Wed Nov 17 22:33:12 2010 +0000 |
tree | be7d4cf8c94b36c9ea48bebd9589b4ca5e8e0954 | |
parent | 12ae290bf32adbc8f4885ec342f5a17a4955fe15 [diff] [blame] |
handle dict subclasses gracefully in PyArg_ValidateKeywordArguments
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 1015772..df8d77f 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c
@@ -454,7 +454,7 @@ { Py_ssize_t pos = 0; PyObject *key, *value; - assert(PyDict_CheckExact(dict)); + assert(PyDict_Check(dict)); /* Shortcut */ if (((PyDictObject *)dict)->ma_lookup == lookdict_unicode) return 1;