From f6da4f62b41db6f50481ae300b4997856638399c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 26 Jul 1993 15:24:57 +0000 Subject: forms_set_event_call_back: argument of None resets event callback to NULL. --- Modules/flmodule.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v0.12