Commit 3863abb9 authored by Guido van Rossum's avatar Guido van Rossum

Correct typo: return -1 for error, not NULL

parent c35f933c
...@@ -1902,7 +1902,7 @@ form_setattr(f, name, v) ...@@ -1902,7 +1902,7 @@ form_setattr(f, name, v)
if (v == NULL) { if (v == NULL) {
err_setstr(TypeError, "can't delete form attributes"); err_setstr(TypeError, "can't delete form attributes");
return 0; return -1;
} }
return setmember((char *)f->ob_form, form_memberlist, name, v); 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