Commit 9be75601 authored by Guido van Rossum's avatar Guido van Rossum

Correct typo: return -1 for error, not NULL

parent 8af6f0d2
......@@ -1902,7 +1902,7 @@ form_setattr(f, name, v)
if (v == NULL) {
err_setstr(TypeError, "can't delete form attributes");
return 0;
return -1;
}
return setmember((char *)f->ob_form, form_memberlist, name, v);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment