Salome HOME
Avoid dump study crash
authormpv <mpv@opencascade.com>
Mon, 20 Jan 2020 11:30:14 +0000 (14:30 +0300)
committermpv <mpv@opencascade.com>
Mon, 20 Jan 2020 11:30:14 +0000 (14:30 +0300)
src/PY/SHAPERSTUDY.py

index 0488f83eaee2e38329943ab1000d08e2ad707205..f9f3ef01cf76644c82e7040994b45b2b2e188586 100644 (file)
@@ -191,7 +191,7 @@ class SHAPERSTUDY(SHAPERSTUDY_ORB__POA.Gen,
         Returns all names with which Object's was dumped
         into python script to avoid the same names in SMESH script
         """
-        return [""]
+        return []
 
     def GetDumpName( self, theStudyEntry ):
         """
@@ -361,7 +361,7 @@ class SHAPERSTUDY(SHAPERSTUDY_ORB__POA.Gen,
         """
         Dump module data to the Python script.
         """
-        return ("".encode(), 1)
+        return ("# SHAPER STUDY DUMP".encode(), 1)