summaryrefslogtreecommitdiffstats
path: root/rpmmodule
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-07 16:57:49 +0000
committerMatt Wilson <msw@redhat.com>1999-08-07 16:57:49 +0000
commit4af258e263102001b68fa49b9e6e7ee98f6f87ba (patch)
tree570ef8567dc36e7a8720328a7c8455af3c5049ae /rpmmodule
parent9d5e806ee043a56c45f4841398273369d19c4c5e (diff)
downloadanaconda-4af258e263102001b68fa49b9e6e7ee98f6f87ba.tar.gz
anaconda-4af258e263102001b68fa49b9e6e7ee98f6f87ba.tar.xz
anaconda-4af258e263102001b68fa49b9e6e7ee98f6f87ba.zip
revert ewt's tuple patch
Diffstat (limited to 'rpmmodule')
-rw-r--r--rpmmodule/rpmmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index b646013d2..6b8d8a463 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -385,7 +385,7 @@ static void rpmdbDealloc(rpmdbObject * s) {
static PyObject * rpmdbFirst(rpmdbObject * s, PyObject * args) {
int first;
- if (!PyArg_ParseTuple(args, "")) return NULL;
+ if (!PyArg_Parse(args, "")) return NULL;
first = rpmdbFirstRecNum(s->db);
@@ -400,7 +400,7 @@ static PyObject * rpmdbFirst(rpmdbObject * s, PyObject * args) {
static PyObject * rpmdbNext(rpmdbObject * s, PyObject * args) {
int where;
- if (!PyArg_ParseTuple(args, "i", &where)) return NULL;
+ if (!PyArg_Parse(args, "i", &where)) return NULL;
where = rpmdbNextRecNum(s->db, where);
@@ -810,7 +810,7 @@ static int rpmtransSetAttr(rpmtransObject * o, char * name,
int i;
if (!strcmp(name, "scriptFd")) {
- if (!PyArg_ParseTuple(val, "i", &i)) return 0;
+ if (!PyArg_Parse(val, "i", &i)) return 0;
if (i < 0) {
PyErr_SetString(PyExc_TypeError, "bad file descriptor");
return -1;
@@ -926,7 +926,7 @@ static void * tsCallback(const Header h, const rpmCallbackType what,
}
if (what == RPMCALLBACK_INST_OPEN_FILE) {
- if (!PyArg_ParseTuple(result, "i", &fd)) {
+ if (!PyArg_Parse(result, "i", &fd)) {
cbInfo->pythonError = 1;
return NULL;
}