mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-08 02:17:27 +05:00
Python 3 porting.
This commit is contained in:
parent
d618ca36b8
commit
9f94362880
@ -96,8 +96,7 @@ namespace
|
|||||||
PyStdOut_write(PyStdOut* self, PyObject* args)
|
PyStdOut_write(PyStdOut* self, PyObject* args)
|
||||||
{
|
{
|
||||||
char *c;
|
char *c;
|
||||||
int l;
|
if (!PyArg_ParseTuple(args, "s", &c))
|
||||||
if (!PyArg_ParseTuple(args, "t#:write", &c, &l))
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
*(self->out) = *(self->out) + c;
|
*(self->out) = *(self->out) + c;
|
||||||
@ -164,6 +163,14 @@ namespace
|
|||||||
0, /*tp_new*/
|
0, /*tp_new*/
|
||||||
0, /*tp_free*/
|
0, /*tp_free*/
|
||||||
0, /*tp_is_gc*/
|
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 )
|
PyObject* newPyStdOut( std::string& out )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user