diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index b613b2bd0..acffea719 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -2814,7 +2814,7 @@ public: Printv(f->def, linkage, wrap_return, wname, "(PyObject *self, PyObject *args, PyObject *kwargs) {", NIL); } - if (builtin) { + if (!builtin) { /* Avoid warning if the self parameter is not used. */ Append(f->code, "(void)self;\n"); }