diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-01 15:12:06 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-01 15:12:06 +0300 |
commit | 9c88ea2c87b5d22026400fb19f064b7967aa4743 (patch) | |
tree | 81f2870c718c744b12b149dd15befe13a144317f /python/rpmmi-py.c | |
parent | 8b704a6bf8ae2c5a922b54ff35c65525e93f0f1f (diff) | |
download | librpm-tizen-9c88ea2c87b5d22026400fb19f064b7967aa4743.tar.gz librpm-tizen-9c88ea2c87b5d22026400fb19f064b7967aa4743.tar.bz2 librpm-tizen-9c88ea2c87b5d22026400fb19f064b7967aa4743.zip |
Deprecation tweaks
- use PyErr_WarnEx() for better control and leave the tracking up to python
- use PendingDeprecationWarning for now
- document the replacing functionality in the deprecation messages
- make hdr.sprintf() just an alias to hdr.format() without deprecating,
at least for now it'd be only a gratuitous incompatible change on python side
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r-- | python/rpmmi-py.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c index e02389180..1d06b5ed9 100644 --- a/python/rpmmi-py.c +++ b/python/rpmmi-py.c @@ -93,7 +93,7 @@ rpmmi_Instance(rpmmiObject * s) static PyObject * rpmmi_Count(rpmmiObject * s) { - DEPRECATED_METHOD; + DEPRECATED_METHOD("use len(mi) instead"); return Py_BuildValue("i", PyMapping_Size((PyObject *)s)); } |