]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2853] Use Py_RETURN_NONE macro instead of returning PyNone directly
authorMukund Sivaraman <muks@isc.org>
Fri, 7 Jun 2013 07:22:49 +0000 (12:52 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 7 Jun 2013 07:22:49 +0000 (12:52 +0530)
src/lib/python/isc/datasrc/zonewriter_python.cc

index 8efcb16c2d282443b7d25d9e0933fc4f4369bd63..5a287652f5d81c0889f1cd1e4ad43950a72c8ef6 100644 (file)
@@ -95,7 +95,7 @@ ZoneWriter_load(PyObject* po_self, PyObject*) {
         return (NULL);
     }
 
-    return (Py_None);
+    Py_RETURN_NONE;
 }
 
 PyObject*
@@ -112,7 +112,7 @@ ZoneWriter_install(PyObject* po_self, PyObject*) {
         return (NULL);
     }
 
-    return (Py_None);
+    Py_RETURN_NONE;
 }
 
 PyObject*
@@ -129,7 +129,7 @@ ZoneWriter_cleanup(PyObject* po_self, PyObject*) {
         return (NULL);
     }
 
-    return (Py_None);
+    Py_RETURN_NONE;
 }
 
 // This list contains the actual set of functions we have in