summaryrefslogtreecommitdiffstats
path: root/Modules/flmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-07-26 15:24:57 (GMT)
committerGuido van Rossum <guido@python.org>1993-07-26 15:24:57 (GMT)
commitf6da4f62b41db6f50481ae300b4997856638399c (patch)
tree1a93e251e643f53088e16f4c11016a96d97e0a88 /Modules/flmodule.c
parent78991fd042aade1e71f8912fa395702640455c86 (diff)
downloadcpython-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/flmodule.c')
-rw-r--r--Modules/flmodule.c2
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);