summaryrefslogtreecommitdiffstats
path: root/Tools/modulator/Templates/module_method
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/modulator/Templates/module_method')
-rw-r--r--Tools/modulator/Templates/module_method12
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/modulator/Templates/module_method b/Tools/modulator/Templates/module_method
index bf64e79..53cc1ac 100644
--- a/Tools/modulator/Templates/module_method
+++ b/Tools/modulator/Templates/module_method
@@ -1,12 +1,12 @@
-static object *
+static PyObject *
$abbrev$_$method$(self, args)
- object *self; /* Not used */
- object *args;
+ PyObject *self; /* Not used */
+ PyObject *args;
{
- if (!newgetargs(args, ""))
+ if (!PyArg_ParseTuple(args, ""))
return NULL;
- INCREF(None);
- return None;
+ Py_INCREF(Py_None);
+ return Py_None;
}