diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 17:49:53 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 17:49:53 +0300 |
commit | 96a1b0a6816f3df9b4ff5290520b72b904182f36 (patch) | |
tree | 0112ee1978ee3a9b579141ac72026efc75efaf1f /python/rpmmi-py.c | |
parent | 43f585fced06e10d4fad8208697cc323857ef535 (diff) | |
download | librpm-tizen-96a1b0a6816f3df9b4ff5290520b72b904182f36.tar.gz librpm-tizen-96a1b0a6816f3df9b4ff5290520b72b904182f36.tar.bz2 librpm-tizen-96a1b0a6816f3df9b4ff5290520b72b904182f36.zip |
Use Py_RETURN_NONE macro for returning None everywhere
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r-- | python/rpmmi-py.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c index c5d3aed95..95060ab13 100644 --- a/python/rpmmi-py.c +++ b/python/rpmmi-py.c @@ -106,8 +106,7 @@ rpmmi_Next(rpmmiObject * s) result = rpmmi_iternext(s); if (result == NULL) { - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } return result; } @@ -160,9 +159,7 @@ rpmmi_Pattern(rpmmiObject * s, PyObject * args, PyObject * kwds) rpmdbSetIteratorRE(s->mi, tag, type, pattern); - Py_INCREF (Py_None); - return Py_None; - + Py_RETURN_NONE; } /** \ingroup py_c |