Kaydet (Commit) f6da4f62 authored tarafından Guido van Rossum's avatar Guido van Rossum

forms_set_event_call_back: argument of None resets event callback to NULL.

üst 78991fd0
...@@ -1995,6 +1995,8 @@ forms_set_event_call_back(dummy, args) ...@@ -1995,6 +1995,8 @@ forms_set_event_call_back(dummy, args)
object *dummy; object *dummy;
object *args; object *args;
{ {
if (args == None)
args = NULL;
my_event_callback = args; my_event_callback = args;
XINCREF(args); XINCREF(args);
INCREF(None); INCREF(None);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment