diff options
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); } |