summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/newmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/newmodule.c b/Modules/newmodule.c
index 7446b97..cfe7883 100644
--- a/Modules/newmodule.c
+++ b/Modules/newmodule.c
@@ -109,7 +109,7 @@ new_function(unused, args)
Py_XDECREF(newfunc->func_name);
newfunc->func_name = name;
}
- if (defaults != NULL) {
+ if (defaults != Py_None) {
Py_XINCREF(defaults);
Py_XDECREF(newfunc->func_defaults);
newfunc->func_defaults = defaults;