diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-07 11:21:14 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-07 11:21:14 +0200 |
commit | f859d8aa7742eae7b5d48409a26086c6f5d80343 (patch) | |
tree | f4d5b7d62d164556b09cf6aca1980b236ca93b40 /python/header-py.c | |
parent | 1567738feddc9202308bc6e0be9c60d3adf5d56f (diff) | |
download | rpm-f859d8aa7742eae7b5d48409a26086c6f5d80343.tar.gz rpm-f859d8aa7742eae7b5d48409a26086c6f5d80343.tar.bz2 rpm-f859d8aa7742eae7b5d48409a26086c6f5d80343.zip |
Make python header iterator return keys, not values
- this is how python built-in dictionary works, be consistent with that
- also avoids having to decide what to do with rpm.td type right now...
Diffstat (limited to 'python/header-py.c')
-rw-r--r-- | python/header-py.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python/header-py.c b/python/header-py.c index 9ec44a91c..041605852 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -404,9 +404,7 @@ static PyObject * hdr_iternext(hdrObject *s) if (s->hi == NULL) s->hi = headerInitIterator(s->h); if ((tag = headerNextTag(s->hi)) != RPMTAG_NOT_FOUND) { - int raw = 1; - res = PyObject_Call((PyObject *) &rpmtd_Type, - Py_BuildValue("(Oii)", s, tag, raw), NULL); + res = PyInt_FromLong(tag); } else { s->hi = headerFreeIterator(s->hi); } |