BIND 10 trac1245, updated. 433f29fd44d8dd6c940e49ee2657b769d70781fe [1245] adjusted the python wrapper template so it works with the change of the assumption on @CPPCLASS at Container constructor (it's now explicit)

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 20 07:47:33 UTC 2011


The branch, trac1245 has been updated
       via  433f29fd44d8dd6c940e49ee2657b769d70781fe (commit)
      from  45ef63790b34ebc2d26081609bb168aefee800dc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 433f29fd44d8dd6c940e49ee2657b769d70781fe
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Tue Sep 20 00:46:33 2011 -0700

    [1245] adjusted the python wrapper template so it works with the change
    of the assumption on @CPPCLASS at Container constructor (it's now explicit)

-----------------------------------------------------------------------

Summary of changes:
 src/lib/util/python/wrapper_template.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/python/wrapper_template.cc b/src/lib/util/python/wrapper_template.cc
index a703731..426ced5 100644
--- a/src/lib/util/python/wrapper_template.cc
+++ b/src/lib/util/python/wrapper_template.cc
@@ -299,8 +299,8 @@ initModulePart_ at CPPCLASS@(PyObject* mod) {
 
 PyObject*
 create at CPPCLASS@Object(const @CPPCLASS@& source) {
-    @CPPCLASS at Container container =
-        PyObject_New(s_ at CPPCLASS@, &@cppclass at _type);
+    @CPPCLASS at Container container(PyObject_New(s_ at CPPCLASS@,
+                                               &@cppclass at _type));
     container.set(new @CPPCLASS@(source));
     return (container.release());
 }




More information about the bind10-changes mailing list