X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_SWIG%2Ftest_remove_ref.py;h=6a4b0b69aaabfa2c57f097c2fed763a860afa012;hb=efe3cdefadc31ad9cdaa9fd7fc368e2931cebdf1;hp=b1ae119f480629540496366e38edc98fdd3a9a69;hpb=bb8609caf7881d966fbb88dec0a7822736da93f5;p=modules%2Fgui.git diff --git a/src/SALOME_SWIG/test_remove_ref.py b/src/SALOME_SWIG/test_remove_ref.py index b1ae119f4..6a4b0b69a 100755 --- a/src/SALOME_SWIG/test_remove_ref.py +++ b/src/SALOME_SWIG/test_remove_ref.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -7,7 +7,7 @@ # 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 @@ -30,22 +30,22 @@ myBuilder = myStudy.NewBuilder() obj1 = myStudy.FindObjectID("0:1") -if obj1 is None: print "Is null obj1 " -else: print obj1.GetID() +if obj1 is None: print("Is null obj1 ") +else: print(obj1.GetID()) obj2 = myBuilder.NewObject(obj1) -print "Obj2 ID = "+obj2.GetID() +print("Obj2 ID = "+obj2.GetID()) myBuilder.Addreference(obj1, obj2) (f, obj3) = obj1.ReferencedObject() -print "Ref obj ID = "+obj3.GetID() +print("Ref obj ID = "+obj3.GetID()) myBuilder.RemoveReference(obj1) (f, obj4) = obj1.ReferencedObject() -print "Ref is found ", f +print("Ref is found ", f) \ No newline at end of file