]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
forms_set_event_call_back: argument of None resets event callback to NULL.
authorGuido van Rossum <guido@python.org>
Mon, 26 Jul 1993 15:24:57 +0000 (15:24 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 26 Jul 1993 15:24:57 +0000 (15:24 +0000)
Modules/flmodule.c

index 90b8115138f1029949af5add46cc3431879d3c39..502ea6cd8cdc845e8650d8468e403d7dbd10d969 100644 (file)
@@ -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);