Salome HOME
Merge Python 3 porting.
[modules/paravis.git] / test / VisuPrs / dump_study / B5.py
index 9a93f24c6637e23a093fba03047d70c4543e6420..d754ff0eaaaebf185e901630236487b51962076c 100644 (file)
@@ -51,13 +51,13 @@ from pvsimple import *
 import presentations
 obj = FindSource('IsoSurfaces')
 if obj is None:
-    print "FAILED: can't find IsoSurfaces!!!"
+    print("FAILED: can't find IsoSurfaces!!!")
 
 # 4. Remove med reader object and all other sources
-for obj in GetSources().values():
+for obj in list(GetSources().values()):
     presentations.delete_pv_object(obj)
 
 # 5. Check results
 obj = FindSource('ScalarMap')
 if obj is not None:
-    print "FAILED: ScalarMap was not deleted!!!"
+    print("FAILED: ScalarMap was not deleted!!!")