diff options
author | Guido van Rossum <guido@python.org> | 1993-07-26 15:24:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-07-26 15:24:57 (GMT) |
commit | f6da4f62b41db6f50481ae300b4997856638399c (patch) | |
tree | 1a93e251e643f53088e16f4c11016a96d97e0a88 /Modules | |
parent | 78991fd042aade1e71f8912fa395702640455c86 (diff) | |
download | cpython-f6da4f62b41db6f50481ae300b4997856638399c.zip cpython-f6da4f62b41db6f50481ae300b4997856638399c.tar.gz cpython-f6da4f62b41db6f50481ae300b4997856638399c.tar.bz2 |
forms_set_event_call_back: argument of None resets event callback to NULL.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/flmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c index 90b8115..502ea6c 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -1995,6 +1995,8 @@ forms_set_event_call_back(dummy, args) object *dummy; object *args; { + if (args == None) + args = NULL; my_event_callback = args; XINCREF(args); INCREF(None); |