mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-06 00:54:17 +05:00
PAL15174 (Dump study works wrong for Concatenate)
avoid "SyntaxError: can't assign to []"
This commit is contained in:
parent
f3488617a0
commit
22f813c1d6
@ -757,9 +757,11 @@ SMESH::ListOfGroups * SMESH_Mesh_i::GetGroups() throw(SALOME::SALOME_Exception)
|
|||||||
if (MYDEBUG) MESSAGE("GetGroups");
|
if (MYDEBUG) MESSAGE("GetGroups");
|
||||||
|
|
||||||
SMESH::ListOfGroups_var aList = new SMESH::ListOfGroups();
|
SMESH::ListOfGroups_var aList = new SMESH::ListOfGroups();
|
||||||
|
|
||||||
// Python Dump
|
// Python Dump
|
||||||
TPythonDump aPythonDump;
|
TPythonDump aPythonDump;
|
||||||
aPythonDump << "[ ";
|
if ( !_mapGroups.empty() ) // (IMP13463) avoid "SyntaxError: can't assign to []"
|
||||||
|
aPythonDump << "[ ";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
aList->length( _mapGroups.size() );
|
aList->length( _mapGroups.size() );
|
||||||
@ -779,7 +781,8 @@ SMESH::ListOfGroups * SMESH_Mesh_i::GetGroups() throw(SALOME::SALOME_Exception)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
aPythonDump << " ] = " << _this() << ".GetGroups()";
|
if ( !_mapGroups.empty() ) // (IMP13463) avoid "SyntaxError: can't assign to []"
|
||||||
|
aPythonDump << " ] = " << _this() << ".GetGroups()";
|
||||||
|
|
||||||
return aList._retn();
|
return aList._retn();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user