Document deprecation of mi.count() and ds.Count().
This commit is contained in:
parent
bacfca16c3
commit
e50e3d14e5
|
@ -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,
|
||||
|
|
|
@ -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" },
|
||||
|
|
Loading…
Reference in New Issue