mirror of https://github.com/python/cpython
Correct typo: return -1 for error, not NULL
This commit is contained in:
parent
c35f933c44
commit
3863abb921
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue