mirror of https://github.com/python/cpython
initialize __doc__ to None
This commit is contained in:
parent
29ca26eebf
commit
8b14b4c733
|
@ -47,6 +47,8 @@ newmoduleobject(name)
|
|||
goto fail;
|
||||
if (dictinsert(m->md_dict, "__name__", nameobj) != 0)
|
||||
goto fail;
|
||||
if (dictinsert(m->md_dict, "__doc__", None) != 0)
|
||||
goto fail;
|
||||
DECREF(nameobj);
|
||||
return (object *)m;
|
||||
|
||||
|
|
Loading…
Reference in New Issue