Oops, these are mappings, not dicts...
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 1 Oct 2009 11:55:55 +0000 (14:55 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 1 Oct 2009 11:55:55 +0000 (14:55 +0300)
python/rpmds-py.c
python/rpmmi-py.c

index 7ad9fd4..d4456e9 100644 (file)
@@ -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 *
index 8a5aa6b..e023891 100644 (file)
@@ -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 *