Commit 8781d4a8 authored by Benjamin Peterson's avatar Benjamin Peterson

merge 3.3

parents 9b80c675 591c9214
...@@ -1707,7 +1707,7 @@ dict_fromkeys(PyObject *cls, PyObject *args) ...@@ -1707,7 +1707,7 @@ dict_fromkeys(PyObject *cls, PyObject *args)
if (d == NULL) if (d == NULL)
return NULL; return NULL;
if (PyDict_CheckExact(d) && PyDict_Size(d) == 0) { if (PyDict_CheckExact(d) && ((PyDictObject *)d)->ma_used == 0) {
if (PyDict_CheckExact(seq)) { if (PyDict_CheckExact(seq)) {
PyDictObject *mp = (PyDictObject *)d; PyDictObject *mp = (PyDictObject *)d;
PyObject *oldvalue; PyObject *oldvalue;
......
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