From: JINMEI Tatuya Date: Thu, 6 Jun 2013 16:36:33 +0000 (-0700) Subject: [2853] make sure to return None (Py_None) for py methods returning None. X-Git-Tag: bind10-1.2.0beta1-release~399^2~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3befd1fe7fed482817a7ccf05baa6292fd7a56a;p=thirdparty%2Fkea.git [2853] make sure to return None (Py_None) for py methods returning None. --- diff --git a/src/lib/python/isc/datasrc/zonewriter_python.cc b/src/lib/python/isc/datasrc/zonewriter_python.cc index 2f56808c1b..8efcb16c2d 100644 --- a/src/lib/python/isc/datasrc/zonewriter_python.cc +++ b/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