summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-10-01 14:55:55 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-10-01 14:55:55 +0300
commit8b704a6bf8ae2c5a922b54ff35c65525e93f0f1f (patch)
treef36a963f8e151f548c71e2b7a5cbbfb85b753fcf /python
parent29eb2f35047363353c851e3f8920123ce0a42217 (diff)
downloadlibrpm-tizen-8b704a6bf8ae2c5a922b54ff35c65525e93f0f1f.tar.gz
librpm-tizen-8b704a6bf8ae2c5a922b54ff35c65525e93f0f1f.tar.bz2
librpm-tizen-8b704a6bf8ae2c5a922b54ff35c65525e93f0f1f.zip
Oops, these are mappings, not dicts...
Diffstat (limited to 'python')
-rw-r--r--python/rpmds-py.c2
-rw-r--r--python/rpmmi-py.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c
index 7ad9fd4ad..d4456e9d1 100644
--- a/python/rpmds-py.c
+++ b/python/rpmds-py.c
@@ -64,7 +64,7 @@ static PyObject *
rpmds_Count(rpmdsObject * s)
{
DEPRECATED_METHOD;
- return Py_BuildValue("i", PyDict_Size((PyObject *)s));
+ return Py_BuildValue("i", PyMapping_Size((PyObject *)s));
}
static PyObject *
diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c
index 8a5aa6b7c..e02389180 100644
--- a/python/rpmmi-py.c
+++ b/python/rpmmi-py.c
@@ -94,7 +94,7 @@ static PyObject *
rpmmi_Count(rpmmiObject * s)
{
DEPRECATED_METHOD;
- return Py_BuildValue("i", PyDict_Size((PyObject *)s));
+ return Py_BuildValue("i", PyMapping_Size((PyObject *)s));
}
static PyObject *