Python dbMatch() doesn't take (or need) len argument, fix the docs
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 19 Oct 2010 12:40:22 +0000 (15:40 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 19 Oct 2010 12:40:22 +0000 (15:40 +0300)
python/rpmts-py.c

index bc010ec..16a8243 100644 (file)
@@ -679,7 +679,7 @@ static struct PyMethodDef rpmts_methods[] = {
  {"setKeyring",        (PyCFunction) rpmts_setKeyring, METH_O, 
        NULL },
  {"dbMatch",   (PyCFunction) rpmts_Match,      METH_VARARGS|METH_KEYWORDS,
-"ts.dbMatch([TagN, [key, [len]]]) -> mi\n\
+"ts.dbMatch([TagN, [key]]) -> mi\n\
 - Create a match iterator for the default transaction rpmdb.\n" },
     {NULL,             NULL}           /* sentinel */
 };