Salome HOME
projects
/
modules
/
yacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a805e9
)
transform std::string in python3 string with PyUnicode_FromString instead of PyBytes_...
author
Paul RASCLE
<paul.rascle@edf.fr>
Fri, 12 Jan 2018 08:09:41 +0000
(09:09 +0100)
committer
Paul RASCLE
<paul.rascle@edf.fr>
Fri, 12 Jan 2018 08:09:41 +0000
(09:09 +0100)
src/runtime/PythonNode.cxx
patch
|
blob
|
history
diff --git
a/src/runtime/PythonNode.cxx
b/src/runtime/PythonNode.cxx
index 7d7ec10099bc0403caa9ff369cc4954c467a40e4..ac61b3de83c6709f11b5d97b2002b44693cf9022 100644
(file)
--- a/
src/runtime/PythonNode.cxx
+++ b/
src/runtime/PythonNode.cxx
@@
-736,7
+736,7
@@
void PythonNode::applyDPLScope(ComposedNode *gfn)
{
const std::pair<std::string,int>& p(ret[i]);
PyObject *elt(PyTuple_New(2));
- PyTuple_SetItem(elt,0,Py
Bytes
_FromString(p.first.c_str()));
+ PyTuple_SetItem(elt,0,Py
Unicode
_FromString(p.first.c_str()));
PyTuple_SetItem(elt,1,PyLong_FromLong(p.second));
PyList_SetItem(ob,i,elt);
}