Salome HOME
Merge remote-tracking branch 'origin/master' into V9_dev
[modules/yacs.git] / src / yacsloader / samples / while2.xml
index 71f62e227b9b1600e53a24c1dc3bb08ec0316deb..ce6947c194461482d63c74a555b71994e95f0870 100644 (file)
@@ -1,10 +1,10 @@
 <!--
-  Copyright (C) 2006-2008  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
@@ -38,9 +38,9 @@
             <code><![CDATA[def f(p1):]]> </code>
             <code><![CDATA[  global a]]> </code>
             <code><![CDATA[  p1= p1+10.]]> </code>
-            <code><![CDATA[  print a]]> </code>
+            <code><![CDATA[  print(a)]]> </code>
             <code><![CDATA[  a=a+p1]]> </code>
-            <code><![CDATA[  print "a:",a]]> </code>
+            <code><![CDATA[  print("a:",a)]]> </code>
             <code><![CDATA[  condition=p1 < 50.]]> </code>
             <code><![CDATA[  return p1,condition]]> </code>
           </function>