summaryrefslogtreecommitdiffstats
path: root/Objects/moduleobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r--Objects/moduleobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 8ab2f45..9d8e182 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -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;