Salome HOME
Remove deprecated OpenCV includes
[modules/geom.git] / src / GEOM_SWIG / BREPPluginBuilder.py
index 11a25726d0acb9a4dba2a05c31afce932df4e37c..2b096d5d7f4cc8d28ae85ee1e8b1ac1386691595 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2014-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -24,7 +24,7 @@ from GEOM import IBREPOperations
 __libraryName__ = "BREPPluginEngine"
 
 def GetBREPPluginOperations(self):
-    anOp = self.GetPluginOperations(self.myStudyId, __libraryName__)
+    anOp = self.GetPluginOperations(__libraryName__)
     return anOp._narrow(IBREPOperations)
 
 ## Export the given shape into a file with given name in BREP format.
@@ -42,7 +42,7 @@ def ExportBREP(self, theObject, theFileName):
     anOp = GetBREPPluginOperations(self)
     anOp.ExportBREP(theObject, theFileName)
     if anOp.IsDone() == 0:
-        raise RuntimeError,  "Export : " + anOp.GetErrorCode()
+        raise RuntimeError("Export : " + anOp.GetErrorCode())
         pass
     pass