Browse Source

[2853] Use Py_RETURN_NONE macro instead of returning PyNone directly

Mukund Sivaraman 12 years ago
parent
commit
cbd8f4ddcd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/lib/python/isc/datasrc/zonewriter_python.cc

+ 3 - 3
src/lib/python/isc/datasrc/zonewriter_python.cc

@@ -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