Salome HOME
type fichier ou repertoire
[tools/eficas.git] / Noyau / N_OPS.py
index e368d32eaddfcb09a4607d12a68bc3992f8c49a3..3b77056a8b03eeb6f26118945f38e9207e33344e 100644 (file)
@@ -1,4 +1,4 @@
-# -*- coding: iso-8859-1 -*-
+# coding=utf-8
 # Copyright (C) 2007-2013   EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-from N_utils import import_object
 
-class OPS:
+from __future__ import absolute_import
+try :
+   from builtins import object
+except :
+   pass
+from .N_utils import import_object
+
+
+class OPS(object):
+
     """Wrapper to ops functions.
     This allows to import them only when they are needed."""
 
@@ -33,8 +40,9 @@ class OPS:
         return func(*args, **kwargs)
 
 
-# utilisé par exemple par des macros où tout est fait dans l'init.
+# utilisé par exemple par des macros où tout est fait dans l'init.
 class NOTHING(OPS):
+
     """OPS which does nothing."""
 
     def __call__(self, macro, *args, **kwargs):