Salome HOME
Put the default protocol to 4 (python3.4) to support new style objects
[modules/yacs.git] / src / runtime / TypeConversions.cxx
index ab0e249a4af6b9c53a7ccaa493f2cf72169d146e..ba4c6bd75b2c0c334ea5e480f5e2b8ccf58fe97f 100644 (file)
@@ -619,7 +619,7 @@ namespace YACS
     {
       int protocol=-1;
       if(IMPLOUT==XMLImpl || IMPLOUT==NEUTRALImpl)
-        protocol=0;
+        protocol=4;
       std::string d=convertToYacsObjref<IMPLIN,TIN,TIN2,IMPLOUT,TOUT>::convert(t,o,aux,protocol);
       DEBTRACE( d );
       TOUT r=convertFromYacsObjref<IMPLOUT,TOUT>::convert(t,d);
@@ -1868,7 +1868,7 @@ namespace YACS
                 {
                   s=(const char*)buffer->get_buffer();
 
-                  if(protocol !=0)
+                  if(protocol !=4)
                     {
                       std::string mystr(s,buffer->length());
                       return mystr;