Browse Source

[2853] make sure to return None (Py_None) for py methods returning None.

JINMEI Tatuya 12 years ago
parent
commit
b3befd1fe7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/lib/python/isc/datasrc/zonewriter_python.cc

+ 6 - 0
src/lib/python/isc/datasrc/zonewriter_python.cc

@@ -94,6 +94,8 @@ ZoneWriter_load(PyObject* po_self, PyObject*) {
                         "Unknown C++ exception");
         return (NULL);
     }
+
+    return (Py_None);
 }
 
 PyObject*
@@ -109,6 +111,8 @@ ZoneWriter_install(PyObject* po_self, PyObject*) {
                         "Unknown C++ exception");
         return (NULL);
     }
+
+    return (Py_None);
 }
 
 PyObject*
@@ -124,6 +128,8 @@ ZoneWriter_cleanup(PyObject* po_self, PyObject*) {
                         "Unknown C++ exception");
         return (NULL);
     }
+
+    return (Py_None);
 }
 
 // This list contains the actual set of functions we have in