Issue #12946: Remove dead code in PyModule_GetDict

PyModule_NewObject already sets md_dict to PyDict_New():

    m->md_dict = PyDict_New();
This commit is contained in:
Berker Peksag 2016-08-19 12:00:13 +03:00
parent 7a01508bbe
commit 7fbce56a57

View file

@ -444,8 +444,7 @@ PyModule_GetDict(PyObject *m)
return NULL;
}
d = ((PyModuleObject *)m) -> md_dict;
if (d == NULL)
((PyModuleObject *)m) -> md_dict = d = PyDict_New();
assert(d != NULL);
return d;
}