mirror of
https://github.com/python/cpython.git
synced 2025-10-20 13:43:01 +00:00
Correct typo: return -1 for error, not NULL
This commit is contained in:
parent
c35f933c44
commit
3863abb921
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue