diff options
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index be67259..d62dd08 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -110,8 +110,9 @@ PyFunction_SetDefaults(op, defaults) } if (defaults == Py_None) defaults = NULL; - else if (PyTuple_Check(defaults)) + else if (PyTuple_Check(defaults)) { Py_XINCREF(defaults); + } else { PyErr_SetString(PyExc_SystemError, "non-tuple default args"); return -1; |