Eww, python ds.Instance() doesn't take any arguments
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 9 Jun 2011 11:25:37 +0000 (14:25 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 9 Jun 2011 11:25:37 +0000 (14:25 +0300)
- ...means its been broken all along, sigh

python/rpmds-py.c

index ebccc72..30fb908 100644 (file)
@@ -214,7 +214,7 @@ The current index in ds is positioned at overlapping member upon success.\n" },
        "ds.Rpmlib -> nds       - Return internal rpmlib dependency set.\n"},
  {"Compare",   (PyCFunction)rpmds_Compare,     METH_O,
        NULL},
- {"Instance",  (PyCFunction)rpmds_Instance,    METH_O,
+ {"Instance",  (PyCFunction)rpmds_Instance,    METH_NOARGS,
        NULL},
  {NULL,                NULL}           /* sentinel */
 };