Salome HOME
Merge Python 3 porting.
[modules/yacs.git] / src / yacsloader / samples / switch5.xml
index ed553503df73f81f3c0ac91da779998369899828..5657b2a7c56d0a56d172d696d4637641d4f318e6 100644 (file)
@@ -1,10 +1,10 @@
 <!--
-  Copyright (C) 2006-2013  CEA/DEN, EDF R&D
+  Copyright (C) 2006-2016  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
-  version 2.1 of the License.
+  version 2.1 of the License, or (at your option) any later version.
 
   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -32,7 +32,7 @@
     </inline>
     <inline name="n2" >
         <script>
-            <code>print p1</code>
+            <code>print(p1)</code>
         </script>
         <inport name="p1" type="double"/>
         <outport name="p1" type="double"/>
@@ -40,7 +40,7 @@
     <switch name="b1">
       <case id="1">
         <inline name="n2" >
-          <script><code>print p1</code></script>
+          <script><code>print(p1)</code></script>
           <inport name="p1" type="double"/>
           <outport name="p1" type="double"/>
         </inline>
@@ -48,7 +48,7 @@
       <case id="3">
         <bloc name="b">
           <inline name="n2" >
-            <script><code>print p1</code></script>
+            <script><code>print(p1)</code></script>
             <inport name="p1" type="double"/>
             <outport name="p1" type="double"/>
           </inline>
@@ -56,7 +56,7 @@
       </case>
       <default>
         <inline name="n2" >
-          <script><code>print p1</code></script>
+          <script><code>print(p1)</code></script>
           <inport name="p1" type="double"/>
           <outport name="p1" type="double"/>
         </inline>