Salome HOME
WIP
[modules/yacs.git] / src / yacsloader / samples / pyremote2.xml
index bdf8e9f10adb1030a9ef5c1995c5669595ed44e9..1784c5164b6b9beae899ba4b020ddb3437ee5909 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <!--
-  Copyright (C) 2006-2013  CEA/DEN, EDF R&D
+  Copyright (C) 2006-2019  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
@@ -20,7 +20,6 @@
 
 -->
 <proc name="newSchema_1">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
@@ -47,9 +46,9 @@
          <code><![CDATA[import time
 
 def f():
-    print my_container
-    for n in xrange(15):
-      print time.time()
+    print(my_container)
+    for n in range(15):
+      print(time.time())
       time.sleep(1)
     
 ]]></code>
@@ -60,9 +59,9 @@ def f():
       <function name="f">
          <code><![CDATA[import time
 def f():
-    print my_container
-    for n in xrange(15):
-      print time.time()
+    print(my_container)
+    for n in range(15):
+      print(time.time())
       time.sleep(1)
 ]]></code>
       </function>