summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-04 11:25:46 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-04 11:25:46 +0200
commitdbdbe8010cd944f026a5a4e5d071eb31d29d81c4 (patch)
treeb7b0f4014409f8514a1729b48a8776660747d149 /python
parent422fa0dbeab879d3510c879554c33e359e0ab7ab (diff)
downloadrpm-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.tar.gz
rpm-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.tar.bz2
rpm-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.zip
Eliminate debug junk from the API
- add some helper macros to accomplish the same, easy to enable / disable as needed
Diffstat (limited to 'python')
-rw-r--r--python/rpmfd-py.c6
-rw-r--r--python/rpmte-py.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/python/rpmfd-py.c b/python/rpmfd-py.c
index 7ba66b9f9..a69cba27d 100644
--- a/python/rpmfd-py.c
+++ b/python/rpmfd-py.c
@@ -73,10 +73,10 @@ static int closeCallback(FILE * f)
else
fdhead = node->next;
node->note = _free (node->note);
- node->fd = fdLink(node->fd, "closeCallback");
+ node->fd = fdLink(node->fd, RPMDBG_M("closeCallback"));
(void) Fclose (node->fd);
while (node->fd)
- node->fd = fdFree(node->fd, "closeCallback");
+ node->fd = fdFree(node->fd, RPMDBG_M("closeCallback"));
node = _free (node);
}
return 0;
@@ -98,7 +98,7 @@ rpmfd_Fopen(PyObject * s, PyObject * args, PyObject * kwds)
node = xmalloc (sizeof(FDlist));
node->fd = Fopen(path, mode);
- node->fd = fdLink(node->fd, "doFopen");
+ node->fd = fdLink(node->fd, RPMDBG_M("doFopen"));
node->note = xstrdup (path);
if (!node->fd) {
diff --git a/python/rpmte-py.c b/python/rpmte-py.c
index 833302f08..95131854a 100644
--- a/python/rpmte-py.c
+++ b/python/rpmte-py.c
@@ -210,7 +210,7 @@ rpmte_DS(rpmteObject * s, PyObject * args, PyObject * kwds)
return Py_None;
#endif
}
- return (PyObject *) rpmds_Wrap(rpmdsLink(ds, "rpmte_DS"));
+ return (PyObject *) rpmds_Wrap(rpmdsLink(ds, RPMDBG_M("rpmte_DS")));
}
static PyObject *
@@ -240,7 +240,7 @@ rpmte_FI(rpmteObject * s, PyObject * args, PyObject * kwds)
return Py_None;
#endif
}
- return (PyObject *) rpmfi_Wrap(rpmfiLink(fi, "rpmte_FI"));
+ return (PyObject *) rpmfi_Wrap(rpmfiLink(fi, RPMDBG_M("rpmte_FI")));
}
/** \ingroup py_c