Document deprecation of mi.count() and ds.Count().

This commit is contained in:
Ville Skyttä 2010-03-19 20:09:15 +02:00 committed by Panu Matilainen
parent bacfca16c3
commit e50e3d14e5
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ static PyObject * rpmds_Rpmlib(rpmdsObject * s)
static struct PyMethodDef rpmds_methods[] = {
{"Count", (PyCFunction)rpmds_Count, METH_NOARGS,
"ds.Count -> Count - Return no. of elements.\n" },
"Deprecated, use len(ds) instead.\n" },
{"Ix", (PyCFunction)rpmds_Ix, METH_NOARGS,
"ds.Ix -> Ix - Return current element index.\n" },
{"DNEVR", (PyCFunction)rpmds_DNEVR, METH_NOARGS,

View File

@ -118,7 +118,7 @@ static struct PyMethodDef rpmmi_methods[] = {
{"instance", (PyCFunction) rpmmi_Instance, METH_NOARGS,
NULL },
{"count", (PyCFunction) rpmmi_Count, METH_NOARGS,
NULL },
"Deprecated, use len(mi) instead.\n" },
{"pattern", (PyCFunction) rpmmi_Pattern, METH_VARARGS|METH_KEYWORDS,
"mi.pattern(TagN, mire_type, pattern)\n\
- Set a secondary match pattern on tags from retrieved header.\n" },