Clinic: fix "self converters" with METH_NOARGS functions.

This commit is contained in:
Larry Hastings 2013-11-24 04:41:57 -08:00
parent 2f9a9aaf21
commit dc6aaec9e3
2 changed files with 47 additions and 42 deletions

View file

@ -403,7 +403,7 @@ PyDoc_STRVAR({c_basename}__doc__,
def meth_noargs_pyobject_template(self, methoddef_flags=""):
return self.template_base("METH_NOARGS", methoddef_flags) + """
static PyObject *
{c_basename}({self_type}{self_name})
{c_basename}({impl_parameters})
"""
def meth_noargs_template(self, methoddef_flags=""):