Skip to content

Commit 2236b75

Browse files
author
guido
committed
Correct typo: return -1 for error, not NULL
git-svn-id: http://svn.python.org/projects/python/trunk@6771 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent f152c6f commit 2236b75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/flmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ form_setattr(f, name, v)
19021902

19031903
if (v == NULL) {
19041904
err_setstr(TypeError, "can't delete form attributes");
1905-
return 0;
1905+
return -1;
19061906
}
19071907

19081908
return setmember((char *)f->ob_form, form_memberlist, name, v);

0 commit comments

Comments
 (0)