From 9f94362880ebaebbd883976ae70e09aee14a5715 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 22 May 2017 17:13:33 +0300 Subject: [PATCH] Python 3 porting. --- src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx b/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx index 6c9376b3b..d3b42a6b1 100644 --- a/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx @@ -96,8 +96,7 @@ namespace PyStdOut_write(PyStdOut* self, PyObject* args) { char *c; - int l; - if (!PyArg_ParseTuple(args, "t#:write", &c, &l)) + if (!PyArg_ParseTuple(args, "s", &c)) return NULL; *(self->out) = *(self->out) + c; @@ -164,6 +163,14 @@ namespace 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ + 0, /*tp_bases*/ + 0, /*tp_mro*/ + 0, /*tp_cache*/ + 0, /*tp_subclasses*/ + 0, /*tp_weaklist*/ + 0, /*tp_del*/ + 0, /*tp_version_tag*/ + 0, /*tp_finalize*/ }; PyObject* newPyStdOut( std::string& out ) -- 2.39.2