diff options
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r-- | Objects/moduleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index cf96a70..3d2cab2 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c @@ -107,7 +107,7 @@ module_setattr(m, name, v) { if (strcmp(name, "__dict__") == 0 || strcmp(name, "__name__") == 0) { err_setstr(NameError, "can't assign to reserved member name"); - return NULL; + return -1; } if (v == NULL) return dictremove(m->md_dict, name); |