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/rpmmacro-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/rpmmacro-py.c')
-rw-r--r-- | python/rpmmacro-py.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/python/rpmmacro-py.c b/python/rpmmacro-py.c index a056998d2..1b54f6ad0 100644 --- a/python/rpmmacro-py.c +++ b/python/rpmmacro-py.c @@ -26,8 +26,7 @@ rpmmacro_AddMacro(PyObject * self, PyObject * args, PyObject * kwds) addMacro(NULL, name, NULL, val, -1); - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } /** @@ -43,8 +42,7 @@ rpmmacro_DelMacro(PyObject * self, PyObject * args, PyObject * kwds) delMacro(NULL, name); - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } /** |