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