diff Tools/modulator/Templates/module_method @ 2713:cd9d86ecc175 legacy-trunk

Templates converted to new naming conventions (thanks to Chak Tan)
author Jack Jansen <jack.jansen@cwi.nl>
date Tue, 16 May 1995 13:47:03 +0000
parents 322fc596f1c4
children a1087aa641cd
line wrap: on
line diff
--- a/Tools/modulator/Templates/module_method	Tue May 16 13:43:09 1995 +0000
+++ b/Tools/modulator/Templates/module_method	Tue May 16 13:47:03 1995 +0000
@@ -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;
 }