Py_RETURN_NONE;
}
-static PyObject * hdrSprintf(hdrObject * s, PyObject * args, PyObject * kwds)
+static PyObject * hdrFormat(hdrObject * s, PyObject * args, PyObject * kwds)
{
char * fmt;
char * r;
return result;
}
+static PyObject * hdrSprintf(hdrObject * s, PyObject * args, PyObject * kwds)
+{
+ DEPRECATED_METHOD;
+ return hdrFormat(s, args, kwds);
+}
+
static PyObject *hdrIsSource(hdrObject *s)
{
return PyBool_FromLong(headerIsSource(s->h));
NULL },
{"convert", (PyCFunction) hdrConvert, METH_VARARGS|METH_KEYWORDS,
NULL },
+ {"format", (PyCFunction) hdrFormat, METH_VARARGS|METH_KEYWORDS,
+ NULL },
{"has_key", (PyCFunction) hdrHasKey, METH_O,
NULL },
{"sprintf", (PyCFunction) hdrSprintf, METH_VARARGS|METH_KEYWORDS,