mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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:
parent
7a01508bbe
commit
7fbce56a57
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue