# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2014-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2021 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
anOp = GetIGESPluginOperations(self)
anOp.ExportIGES(theObject, theFileName, theVersion)
if anOp.IsDone() == 0:
- raise RuntimeError, "Export : " + anOp.GetErrorCode()
+ raise RuntimeError("Export : " + anOp.GetErrorCode())
pass
pass
anIsIgnoreUnits = theIsIgnoreUnits
aName = theName
- if isinstance( theIsIgnoreUnits, basestring ):
+ if isinstance( theIsIgnoreUnits, str ):
anIsIgnoreUnits = False
aName = theIsIgnoreUnits
pass